v2.42
 
IModelObject Interface Reference

Represents any Renga model object. More...

Public Member Functions

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

Properties

int Id [get]
 The identifier of the object instance. It is unique in current project instance.
 
BSTR Name [get]
 The localized object name.
 
GUID ObjectType [get]
 The type of the object.
 
BSTR ObjectTypeS [get]
 The type of the object as a string.
 
GUID UniqueId [get]
 The unique identifier of the object instance. It is a universal unique identifier.
 
BSTR UniqueIdS [get]
 Same as UniqueId, but returning GUID as a string.
 

Detailed Description

Represents any Renga model object.

This interface can be obtained through the IModelObjectCollection interface.

Member Function Documentation

◆ GetInterfaceByName()

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

Returns an interface by its name.

This method is provided as an alternative for the standard COM QueryInterface() method for cases where IUnknown is not accessible, like interoperating with the API from some interpreted languages.

Parameters
[in]interfaceNameThe name of the requested interface.
[out]ppInterfaceThe requested interface.

◆ GetParameters()

HRESULT GetParameters ( [out, retval] IParameterContainer ** ppParameterContainer)

Returns the parameter container interface for the object.

Note
For now, drawing objects do not support parameters.
Returns
A parameter container.

◆ GetProperties()

HRESULT GetProperties ( [out, retval] IPropertyContainer ** ppPropertyContainer)

Returns the property container interface for the object.

Note
For now, drawing objects do not support properties.
Returns
A property container.

◆ GetQuantities()

HRESULT GetQuantities ( [out, retval] IQuantityContainer ** ppQuantityContainer)

Returns the quantity container interface for the object.

Note
For now, drawing objects do not support quantities.
Returns
A quantity container.

Property Documentation

◆ ObjectType

GUID ObjectType
get

The type of the object.

See also
Object types

◆ ObjectTypeS

BSTR ObjectTypeS
get

The type of the object as a string.

See also
Object types