![]() |
v2.40
|
|
Allows to obtain and edit model objects. More...
Public Member Functions | |
HRESULT | CreateNewEntityArgs ([out, retval] INewEntityArgs **ppArgs) |
Creates arguments for creating a new entity. | |
HRESULT | CreateObject ([in] INewEntityArgs *pArgs, [out, retval] IModelObject **ppModelObject) |
Creates a new model object. | |
HRESULT | CreateOperation ([out, retval] IOperation **ppOperation) |
Creates an operation. | |
HRESULT | GetIdFromUniqueId ([in] GUID uniqueId_, [out, retval] int *id_) |
Returns the local identifier of the object of this model by it's unique identifier. | |
HRESULT | GetIdFromUniqueIdS ([in] BSTR uniqueId_, [out, retval] int *id_) |
Same as GetIdFromUniqueId, but accepting GUID as a string. | |
HRESULT | GetObjects ([out, retval] IModelObjectCollection **ppModelObjectCollection) |
Returns a collection of all objects present in the model. | |
HRESULT | GetUniqueIdFromId ([in] int id_, [out, retval] GUID *uniqueId_) |
Returns the unique identifier of the object of this model by it's local identifier. | |
HRESULT | GetUniqueIdFromIdS ([in] int id_, [out, retval] BSTR *uniqueId_) |
Same as GetUniqueIdFromId, but returning GUID as a string. | |
Properties | |
GUID | Id [get] |
The identifier of the model. | |
Allows to obtain and edit model objects.
This interface can be obtained with IProject::Model (building model) property. It also can be obtained
as an additional interface from IEntity if the entity is an assembly.
HRESULT CreateNewEntityArgs | ( | [out, retval] INewEntityArgs ** | ppArgs | ) |
Creates arguments for creating a new entity.
[out] | ppArgs | The arguments for creating a new entity. |
HRESULT CreateObject | ( | [in] INewEntityArgs * | pArgs, |
[out, retval] IModelObject ** | ppModelObject ) |
Creates a new model object.
[in] | pArgs | Arguments for creating a model object. |
[out] | ppModelObject | The created model object instance. |
List of object types that can be created:
For dependent objects:
HRESULT CreateOperation | ( | [out, retval] IOperation ** | ppOperation | ) |
Creates an operation.
To modify any model object you need to create an operation and start it before the modifications are done, and apply it afterwards.
HRESULT GetObjects | ( | [out, retval] IModelObjectCollection ** | ppModelObjectCollection | ) |
Returns a collection of all objects present in the model.