cancel
Showing results for 
Search instead for 
Did you mean: 

Abbreviate part of a name

Former Member
0 Kudos

Hello,

     We want to abbreviate only the representation term / classword of an attribute.  For example, Code abbreviated to CD - but only if it's the last word in the attribute name.  I know ERwin and IDA can do this.

Thanks,

Pete

Accepted Solutions (1)

Accepted Solutions (1)

GeorgeMcGeachie
Active Contributor
0 Kudos

Hello Pete

You can't do this out of the box, as PD doesn't provide a way of managing the parts of entity and attribute names.

You can customise the name-to-code conversion script used by PD. As it says in the help file:

You can enter any valid GTL code (including macros such as .foreach_part, .lowercase, .uppercase, .replace, and .delete), but only the .convert_name and .convert_code macros call a conversion table if one is selected.

For detailed information about GTL, see Customizing and Extending PowerDesigner > Customizing Generation with GTL .

I haven't looked into it myself, but you could probably use .for_each_part to isolate the last word in the name in the Glossary, a file or an extended attribute. The .vbscript macro allows you to embed some VBscript if that's better at the job.

It's worth an enhancement request, I think.

Former Member
0 Kudos

Thanks George!

GeorgeMcGeachie
Active Contributor
0 Kudos

Pete, if you decide to build it yourself, please share

Answers (0)