Book a Demo

Author Topic: SHape script tag  (Read 4564 times)

DavidM

  • EA User
  • **
  • Posts: 82
  • Karma: +0/-0
    • View Profile
SHape script tag
« on: August 06, 2016, 10:53:57 am »
Hi,
I am using Sparx 9.2.
Can anyone tell me if it is possible to print user defined tags from an element on a shape, from within that element's shape script?
I know you can test them, but have found no evidence you can print them.

I have a horrible, horrible,horrible, horrible, horrible feeling that you cannot.

Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SHape script tag
« Reply #1 on: August 06, 2016, 01:24:50 pm »
Sure you can.
See https://github.com/GeertBellekens/Enterprise-Architect-Shapescript-Library/blob/master/BAM/BAM_ComposedBasicMeasure.shapeScript for an example, it uses
Code: [Select]
if (hastag("compositionExpression"))
{
print("#TAG:compositionExpression#");
}

Geert

DavidM

  • EA User
  • **
  • Posts: 82
  • Karma: +0/-0
    • View Profile
Re: SHape script tag
« Reply #2 on: August 10, 2016, 03:24:52 pm »
Thanks!!!
That took some finding in the documentation!