Implementing "Typed By" Assignment in SysON Custom Creation Tools #2100
-
|
I want to know how a tool for creating an actor, for example, can be implemented inside SysON using the view model. I followed the Obeo blog post on extending SysON for Arcadia. I successfully created a tool that generates a new PartUsage, but I haven't been able to figure out how to modify the 'typed by' field programmatically. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Hello, If I understand correctly your need, you succeeded in creating a new Lets say you want to produce the following model: So you probably created your To type it with the Best regards, |
Beta Was this translation helpful? Give feedback.

yes
no, you have to use the existing instance of a
PartDefinitionor any other compatible type. Either you have to use aSelectionDialogDescriptionto be able to select and existing element and then use this selected element in your "SetValue" or you must be able to navigate to thePartDefinitionor any other compatible type from an accessible element in your context (selfornewPartUsage), but it won't be easy because the sysml metamodel is complex (in my example if you start your navigation fromnewPartUsageyou will have to navigate to its parent B then the parent of B, MyPkg and the…