

CA Gen Toolset Automation › Plug-ins › Plug-in Application Execution
Plug-in Application Execution
The plug-in application will instantiate a pointer to the currently opened CA Gen toolset using the toolset OLE automation interface. This gives the application access to the functionality provided by the interface. In particular, it will allow the application to read or modify the currently opened model using the meta-model API functions added to the toolset OLE automation interface by this project as well as other functions already provided by the interface.
The meta-model API functions are provided in three objects:
- OpenAPI - This object provides non-object specific functionality such as converting a mnemonic value to a number, counting the number of objects in the model, or returning a MetaModelObjects collection object pointing to a list of all objects of a specified type in the model. It is returned when the OpenAPI property of the Model object is selected.
- MetaModelObjects - This collection object is returned by any function that might return more than one MetaModelObject. It provides a single "count" property and a single "Item" method.
- MetaModelObject - This object provides object specific functionality such as fetch or update property or add or follow an association. If the object_id is known, the object may be fetched by using the OpenAPI function GetMetaModelObject or it may be retrieved as an item of a MetaModelObjects collection.
Copyright © 2014 CA.
All rights reserved.
 
|
|