Toad World® Forums

Templates for naming conventions in Physical and Logical models


#1

Is there a way to create templates so that object names follow certain naming conventions? Basically, if I’m creating entities, relationships, etc, I’d like to be able to build my naming conventions into TDM so I don’t have to manually change them while building new models.


#2

Hi Ben,

Thanks for your post.
Unfortunately, there is no way to create any templates to build naming conventions.

Ben, could you please write us more details on how it should work, what you expect etc.?

Thanks very much in advance.

For now, you can only take advantage of the scripting feature - not to have to change the names manually.

Please find attached a sample script for renaming entity and attribute names.
If you need any help with the scripting, please do not hesitate to write us. Thanks.

Note on this line of the script:
var Model = app.Models.GetObject(0);
//… parameter in GetObject determines with which model the script should work.
//0 = first model listed in the Application View, 1 = second model listed in the Application View etc.

Regards,

Vladka
Renaming_Entities_Attributes.zip (524 Bytes)


#3

Thank you so much, Vladka. I’m passing a link to this thread to the customer who asked me about this feature. Hopefully, they’ll be able to add some additional detail here as to their specific needs for this functionality.

Cheers,
Ben