Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: rogerjohansson on May 29, 2024, 04:40:11 pm

Title: Access StateFlags from a Shape script
Post by: rogerjohansson on May 29, 2024, 04:40:11 pm
Hi,
Is it possible to print an object state (Stateflags) in ShapeScript?
Like:
shape label
{
      setfontcolor(0,0,255);
      setOrigin("S",-10,1);
      print("#stateflags#"); //Dont work!!!! Not recognized by EA
   
}
Title: Re: Access StateFlags from a Shape script
Post by: qwerty on May 29, 2024, 06:32:26 pm
See https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/displaying_element_properties.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/displaying_element_properties.html)
Since it's not listeted you either write an add-in or send a feature request.

q.