Book a Demo

Author Topic: Shapescript Visibility Properties  (Read 5590 times)

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Shapescript Visibility Properties
« 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

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shapescript Visibility Properties
« Reply #1 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ceronimo

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Shapescript Visibility Properties
« Reply #2 on: June 09, 2016, 05:41:57 pm »
Bad, thank you for the fast answer !

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shapescript Visibility Properties
« Reply #3 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.