Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Hurra on December 04, 2023, 09:11:18 pm

Title: Custom MDG create property with connector (aggregation/composition)
Post by: Hurra on December 04, 2023, 09:11:18 pm
Hello!

I have defined a custom stereotype which is a generalization of SysML1.4::block and metaclass Class.

I have defined a custom relationship with metaclass Aggregation (I don't see any stereotype on SysML relationships part/shared association).

When I create two of these stereotypes and a connector between them, it works. But I don't get any property/type object as child in the 'whole'.

I've tried to create a generalization on my custom diagram: SysML::Block Definition, but didn't do anything. The SysML diagrams doesn't seem to have a stereotype assigned to them?

How do I change my MDG to create part/properties object when adding a connector like composition/aggregation, like in the SysML MDG?

It was a long time ago since I played around creating an MDG 😇

Thanks!

Note: my stereotype have Instance Behavior Mode: Property
Title: Re: Custom MDG create property with connector (aggregation/composition)
Post by: Eve on December 06, 2023, 11:00:13 am
I've tried to create a generalization on my custom diagram: SysML::Block Definition, but didn't do anything.
It won't, because that's not one of the ways you can specialize a diagram type from a profile.

https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/custommetamodelview.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/custommetamodelview.html)

https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/rulesbroadcast_initialize.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/rulesbroadcast_initialize.html)