We would like to standardize on the display of our submodels to provide a more unified look to the diagrams in Team Server. This means having consistent settings for the way Tables are displayed in Models. For example, we would always like to include the Datatype, Domain, Null Option, Owner, and Default Value for tables. The default settings when you create a new Submodel do not include all of these.
Does anybody know if there a way to:
a) Change the default settings that are used when a new Submodel is created
b) Use a macro to access and set the Display options for a Submodel? I don't see anything in the API reference that would indicate these display option properties are exposed...
Hi Sue. When published into Team Server, the models and submodels are rendered exactly as they appear in data architect, based on the display options that were set for that particular model/subbmodel.
When a submodel is created, it inherits the same display properties of it's parent model or submodel. Therefore, if you want consistent appearance in all submodels that you create, first make format changes to the main model. Individual submodels can then be changed independently.
It is also very easy to apply the format to all (or a subset of submodels all at once). When you make a format change, simply navigate to the "Apply To" tab within the "Diagram and Object Display Options editor, then click the checkboxes beside all that you wish to change. Checking the top checkbox beside the Diagram file name will automatically check (select) all others.
Thanks for the reply Ron. Yes, it is easy to use the Apply To tab to apply your changes all at once, but it is still a manual step that someone has to remember to do. I was not aware that new submodels inherited the properties of the Main Model, so that helps, but not everything is inherited. I cannot for the life of me find a setting in ER Studio that will default the view of a new Physical submodel to use Logical Attribute Order, which we prefer even in Physical models so PK columns are easy to identify. New physical submodels do not inherit that setting from the Physical Main Model, nor from Tools|Options Application settings. That is something we always have to change on every Physical model/submodel that we create...
"Tools/Options/Display/Display Mode" set to "Attribute (Logical Order)" might do what you want...
The properties are in the API, look at the SubModel object. E.g. mySubModel.ShowEntityAlternateKey = True
Unfortunately they aren't all exposed, for example the 'Default' checkbox has no corresponding property. I have also seen where some of them do not work consistently for some unknown reason.
That doesn't surprise me... :-)
Powered by IDERA