Book a Demo

Author Topic: Text substitution macros in RTF generation?  (Read 3278 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Text substitution macros in RTF generation?
« on: May 31, 2010, 02:53:48 pm »

EA Pro Edition 7.5.850.

I am using RTF generation to generate sections of my software design description.  Descriptions of attributes and methods are placed in the Notes for the attributes / methods and exported to RTF.  So far it is working quite well but there is one inconvenience I would like to find a way around.

I have one class that has about 30 different attributes (don't tell me... it really has to be that way) and about a third to half of them include the same statement in their Notes.  So, instead of copying and pasting the same big long statement in 10-15 Notes sections of attributes (which creates maintenance problems... if I have to change the statement I have to remember all of the places I copied it), is there a way I can define some kind of a macro that will expand to the full statement on export?  Something like...

ShortMacro = "This is a big long statement that has to be included in a gazillion places" (define this somewhere in the RTF export template)

... and then just insert something like $ShortMacro or %ShortMacro% in the attribute's Notes.

Does anything like that exist in EA?