v2.4
IModelObject Interface Reference

The base interface for all model objects. More...

Inheritance diagram for IModelObject:

Public Member Functions

HRESULT GetProperties ([out, retval] IPropertyContainer **ppPropertyContainer)
 Returns the property container interface for the object. More...
 
HRESULT GetQuantities ([out, retval] IQuantityContainer **ppQuantityContainer)
 Returns the quantity container interface for the object. More...
 
HRESULT GetInterfaceByName ([in] BSTR interfaceName, [out, retval] IDispatch **ppInterface)
 Returns the interface by its name. More...
 

Properties

GUID ObjectType [get]
 The type of the object. More...
 
int Id [get]
 The unique identifier of the object instance.
 
BSTR Name [get]
 The localized object name.
 
BSTR ObjectTypeS [get]
 The type of the object as a string. More...
 

Detailed Description

The base interface for all model objects.

Using this interface you can obtain the type, ID and name of an object. This interface can be obtained through the IModelObjectCollection interface.

Member Function Documentation

HRESULT IModelObject::GetInterfaceByName ( [in] BSTR  interfaceName,
[out, retval] IDispatch **  ppInterface 
)

Returns the interface by its name.

This method is an alternative for the standard COM QueryInterface method. Use this method when you are using API from dynamically typed languages, otherwise use QueryInterface. Additional interfaces such as ILevelObject, IObjectWithMark, etc. can be obtained with this method.

Returns
Pointer to the requested interface.
HRESULT IModelObject::GetProperties ( [out, retval] IPropertyContainer **  ppPropertyContainer)

Returns the property container interface for the object.

Returns
A property container.
HRESULT IModelObject::GetQuantities ( [out, retval] IQuantityContainer **  ppQuantityContainer)

Returns the quantity container interface for the object.

Returns
A quantity container.

Property Documentation

GUID IModelObject::ObjectType
get

The type of the object.

See also
Object types
BSTR IModelObject::ObjectTypeS
get

The type of the object as a string.

See also
Object types