Author Topic: Class Name Conversion in Transformation Scripts  (Read 1909 times)

salayande

  • EA User
  • **
  • Posts: 224
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Class Name Conversion in Transformation Scripts
« 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

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Class Name Conversion in Transformation Script
« Reply #1 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?
Best Regards, Roy