![]() |
v2.39
|
|
Allows to obtain and edit model objects. More...
Public Member Functions | |
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 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.