Accessing Metamodel Information
You can obtain the metamodel of erwin DM by using the API. The metamodel can be accessed in the same manner as an erwin DM model. As in the case with model data, the ISCPersistenceUnit or ISCModelSet pointer in an ISCSession::Open call indicates the model set with which you are working.
There is a special case for the intrinsic metamodel. To obtain the intrinsic metamodel for a specific class of metadata, you can use the Property Bag component created with the PropertyBag method of the ISCApplicationEnvironment interface. A Property Bag instance populated with EMX_Metadata_Class or EM2_Metadata_Class properties from the Application category indicates the type of the intrinsic metamodel to access. The instance must be submitted as the first parameter in an ISCSession::Open call, instead of ISCPersistenceUnit or ISCModelSet pointers. If the first parameter in an ISCSession::Open call is NULL, then the intrinsic metamodel for the top model set in a persistence unit, the EMX class metadata, will be accessed.
To indicate that a session will access metamodel information, you set the Level parameter of the Open method to SCD_SL_M1.
Copyright © 2025 Quest Software, Inc. |