A3DMiscRootBaseInsertAttribute

A3DStatus A3DMiscRootBaseInsertAttribute(const A3DRootBase *pRootBase, const A3DMiscAttribute *pAttribute)
A3DStatus A3DMiscRootBaseInsertAttribute(const A3DRootBase* pRootBase, const A3DMiscAttribute* pAttribute)

Adds a new attribute to the given entity.

2.0

Return Values

A3D_INITIALIZE_NOT_CALLED: if the library is not initialized

A3D_INVALID_ENTITY_NULL: if either pRootBase of pAttribute is 0

A3D_BASE_BAD_ENTITY_TYPE: if pRootBase is not a root base type or derived

Parameters

pRootBase: A handle to the entity

pAttribute: A handle to the new attribute

Returns

A3D_SUCCESS or an error code