API Reference > Classes > Main Classes > OdBmDirectShape Class > OdBmDirectShape Methods > OdBmDirectShape::createElementInstance Method
OdBmDirectShape::createElementInstance Method
Syntax
C++
OdResult createElementInstance(const OdBmObjectId& typeId, const OdBmObjectId& categoryId, const OdGeMatrix3d& trf = OdGeMatrix3d::kIdentity);
Parameters 
Description 
const OdBmObjectId& typeId 
[in] A type of DirectShape element to be created.  
const OdBmObjectId& categoryId 
[in] An identifier of the created element category. Must be a valid category identifier.  
const OdGeMatrix3d& trf = OdGeMatrix3d::kIdentity 
[in] A transformation matrix to be implemented to the created element.  

eOk if the element instance was successfully created; otherwise the method returns an appropriate error code.

Creates an element instance based on a specified DirectShape type.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.