I am trying to import domains into a logical model using a macro (I am using the "Add Base AttributesTo Person Entity" as example). The macro I have built is working properly when the domains are in local Data Dictionary (IE. The one included in the model) but I would like to use the Enterprise Data Dictionary that has been created and is bound to the model. Currently, I am using the following logic to try to point the data dictionary but is pointing to the local data dictionary.
' Get the current Data Dictionary.
Set MyDictionary = MyDiagram.Dictionary
How do I code to use the Enterprise Data Dictionary?
If you know the name of the EDD, you can do it this way:
Dim MyDictionary As Dictionary
Set MyDictionary = MyDiagram.EnterpriseDataDictionaries.Item ("My Enterprise Data Dictionary")
Remember while there is only 1 local data dictionary, there can be multiple Enterprise Dictionaries, so it is a collection...
Thanks...this worked perfectly.