Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: salayande on July 14, 2009, 04:31:48 am

Title: Class Name Conversion in Transformation Scripts
Post by: salayande on July 14, 2009, 04:31:48 am
Dear all,
 
I am writing a transform script to convert the name of classes to Pascal Case with spaces, example a class with name "PERSON_LAST_NAME"  becomes "Person Last Name"
 
Using the CONVERT_NAME("className", "Spaced", "Pascal case"), I get the result,  "PersonLastName".
 
Please, kindly advice how I may introduce spaces into above result using this macro.
 
Thank you in anticipation


Segun
Title: Re: Class Name Conversion in Transformation Script
Post by: RoyC on July 14, 2009, 09:23:38 am
You seem to have put the target format in the original format parameter.

Perhaps try CONVERT_NAME("className", "Underscored", "Ht ( ) Ht")

Does that work?