Book a Demo

Author Topic: Shape Scripts and Tagged Values  (Read 4542 times)

Dines Madsen

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Shape Scripts and Tagged Values
« on: October 15, 2013, 07:06:43 am »
Hello ladies and gentlemen,

I have been looking for a way to display the _metatype of custom objects in order to show the type more easily. I have been developing a shape script that does this, but this has introduced a new issue with displaying tagged values. My question is:

How do I display all tags and tag values for an element? Is there a method or some kind of loop to go through all tagged value pairs and print them?

Thank you for your assistance.

Best Regards
Dines Madsen

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Shape Scripts and Tagged Values
« Reply #1 on: November 07, 2013, 08:01:56 pm »
Hi,

There isn't anything in the standard shapescript notation. You could however write an add-in which does it using the standard automation interface, element.TaggedValues returns the collection to iterate. You can then invoke the add-in from the shapescript.

Regards,

Jon.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Shape Scripts and Tagged Values
« Reply #2 on: November 07, 2013, 10:00:26 pm »
As the shape script is in a context where it knows which tagged values are created by the MDG you could print them this way. Alas, if a user adds own TVs they will not appear.

q.