Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: M1TO on December 05, 2023, 07:25:20 pm

Title: Attribute Constraints in an MDG
Post by: M1TO on December 05, 2023, 07:25:20 pm
Hi there!
I have an MDG defining a stereotype for a class. The stereotype has several attributes. But one of the attributes shall only be visible if another one has a specific value. Is that even possible and if yes, how? I thought about attribute constraints, but didn't find any example.
Title: Re: Attribute Constraints in an MDG
Post by: Eve on December 06, 2023, 11:01:49 am
Only via an add-in.

https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/rulesbroadcast_showelementproperty.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/rulesbroadcast_showelementproperty.html)
Title: Re: Attribute Constraints in an MDG
Post by: M1TO on December 06, 2023, 09:56:35 pm
Oh, okay. And I presume the Technology Rules are only available in version 16 and not 15.2, right?
Title: Re: Attribute Constraints in an MDG
Post by: Eve on December 07, 2023, 08:07:51 am
From memory, yes.