|
Re: Creating a node for a specific container [message #1750288 is a reply to message #1750198] |
Mon, 19 December 2016 15:12 |
|
Hi Anton,
In your Node Creation tool you can create a new B instance (using the Create Instance operation). This B instance can be retrieved by using the variable defined in "Variable Name" ("instance" by default) or by defining a new Create Instance operation for C, as a child of Create Instance B. In that case the context will be the new B instance.
Begin
|__Create Instance B
|__ Create Instance C
Regards,
Florian
|
|
|
|
|
|
Re: Creating a node for a specific container [message #1821212 is a reply to message #1821057] |
Fri, 07 February 2020 09:20 |
|
Burak Karaduman wrote on Tue, 04 February 2020 23:50So, related to the above discussion, Is there any way to create a new C, without using any existing B?
*Creating* a new C can be done without a B, but for the new instance to be part of your model you will need to attach it to an existing element. Anything which a type-compatible containment feature can be used, you just have to make sure your "Create Instance" operation is executed in the context of such an compatible container element (which itself is attached to the rest of the model) and indicate in the "Create Instance" operation the name of the containment feature (of the parent) to which the newly created C instance should be attached.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03906 seconds