Author Topic: Access StateFlags from a Shape script  (Read 1224 times)

rogerjohansson

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Access StateFlags from a Shape script
« 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
   
}

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Access StateFlags from a Shape script
« Reply #1 on: May 29, 2024, 06:32:26 pm »
See 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.