Author Topic: Code Transform and Attribute Tags  (Read 1860 times)

hoylet

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Code Transform and Attribute Tags
« on: February 05, 2024, 11:27:05 pm »
Hi

I have created a Transform based upon the Java code transform.

Is there a way of outputting all the tags applied to an attribute

for a specific tag I can do this :-

Code: [Select]
%WRAP_COMMENT(attTag:"protobuf field min value",genOptWrapComment,"","// protobuf field min value ")%

but I would like to output all tags

Code: [Select]
%WRAP_COMMENT(attTag:"*",genOptWrapComment,"","// ")%
Do I need to use list or some form of loop

Any suggestions would be most welcome

Thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7970
  • Karma: +113/-20
    • View Profile
Re: Code Transform and Attribute Tags
« Reply #1 on: February 06, 2024, 01:34:30 pm »
Is there a way of outputting all the tags applied to an attribute
Short answer. No.

Longer answer: Not within the templates themselves. You would need to call an add-in using EXEC_ADD_IN

I've done similar things in the past in some very complicated transforms using a model add-in.
« Last Edit: February 06, 2024, 01:37:14 pm by Eve »

hoylet

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Code Transform and Attribute Tags
« Reply #2 on: February 06, 2024, 09:29:23 pm »
Thank you Eve I will look into that