Author Topic: Custom MDG create property with connector (aggregation/composition)  (Read 2803 times)

Hurra

  • EA User
  • **
  • Posts: 183
  • Karma: +0/-0
    • View Profile
    • Find me at LinkedIn!
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
always learning!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8063
  • Karma: +118/-20
    • View Profile
Re: Custom MDG create property with connector (aggregation/composition)
« Reply #1 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/add-ins___scripting/rulesbroadcast_initialize.html