API Reference > Classes > Main Classes > OdBmDirectShape Class > OdBmDirectShape Methods > OdBmDirectShape::createElement Method
OdBmDirectShape::createElement Method
Syntax
C++
static OdResult createElement(OdBmDatabasePtr& pDb, const OdBmObjectId& categoryId, OdBmElementPtr & pDirectShape);
Parameters 
Description 
OdBmDatabasePtr& pDb 
[in] Database for DirectShape.  
const OdBmObjectId& categoryId 
[in] An identifier of the created element category. Must be a valid category identifier.  
OdBmElementPtr & pDirectShape 
[out] Pointer to created directShape.  

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

Creates a direct shape element and adds to database.

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