Hi all,
I am trying to generate a sysml file with one part usage “b” subsetting another part usage “a”:
part a;
part b :> a{
doc
/* documentation for part b */
}
After several attempts I wanted to confirm that this is possible with automator at the moment?
Are (syside.Subsetting, syside.FeatureReference) the correct types for the “:>” relationship? I have tried different ones but the Explorer shows these.
object = parent_body.append( syside.OwningMembership, syside.PartUsage )[1]
object.declared_name = "b"
heritage = object.heritage.append(syside.Subsetting, syside.FeatureReference)[1] # script fails here
heritage.referenced_type ="a"
Thanks for any hints