Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on October 04, 2019, 03:33:12 pm

Title: Can you set multiplicity in the MDG?
Post by: Paolo F Cantoni on October 04, 2019, 03:33:12 pm
Is there any way to set the multiplicities for a relationship in the MDG?
When one creates an associative relationship (Association, Aggregation, Composition etc.)  you have to set the multiplicities at both ends to fully specify the nature of the relationship.  We'd like to have the ability to set some of the more common multiplicities (perhaps via hidden menu) to save the user having to use multiple mouse/keyclicks to set it up.

TIA,
Paolo
Title: Re: Can you set multiplicity in the MDG?
Post by: KP on October 04, 2019, 04:21:44 pm
Yes, search the help for SourceMultiplicity and/or TargetMultiplicity.
Title: Re: Can you set multiplicity in the MDG?
Post by: Paolo F Cantoni on October 04, 2019, 08:33:05 pm
Yes, search the help for SourceMultiplicity and/or TargetMultiplicity.
Sorry,  I wasn't clear enough, I know how to set those, but those are a single setting per metatype.  I'm after a more dynamic method that allows the user to select the.realtionship type (one-to-many etc.) similar to the BPMN 2.0 Activity subtype.

Paolo
Title: Re: Can you set multiplicity in the MDG?
Post by: KP on October 07, 2019, 09:28:09 am
Ah, sorry. No I think you'd need an add-in for that: EA_OnPostNewConnector