Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ceronimo on June 09, 2016, 05:17:10 pm

Title: Shapescript Visibility Properties
Post by: Ceronimo on June 09, 2016, 05:17:10 pm
Hi i have a Default class with my stereotype (Picture in the right Corner)  (natvive shape + my Image in the right Corner).

the Stereotype is visible (text <<TestStereotype>> .
How can i Change the visibility of it to false?

if(HasProperty("stereotype", "TestStereotype"))

     {

          something like TestStereotype.Visible=false; ???????????

     }

at the end i want to see my native shape with my Image and nothing else !

Thank you all for your help
Title: Re: Shapescript Visibility Properties
Post by: Paolo F Cantoni on June 09, 2016, 05:38:00 pm
Hi Ceronimo,

Unfortunately, AFAIK you can't remove the stereotype display on a per-object basis.  You can do it on a per-diagram basis via the Diagram Properties dialog Elements page.

I, too, would like to be able to do that.  Please put in a feature request.

Paolo
Title: Re: Shapescript Visibility Properties
Post by: Ceronimo on June 09, 2016, 05:41:57 pm
Bad, thank you for the fast answer !
Title: Re: Shapescript Visibility Properties
Post by: qwerty on June 10, 2016, 05:50:11 am
I don't know if that is what you need, but if you have that condition you can call DrawNativeShape() to get the base shape.

q.