API Reference > Classes > Main Classes > OdBmDirectShape Class > OdBmDirectShape Methods > OdBmDirectShape::setCategoryId Method
OdBmDirectShape::setCategoryId Method
Syntax
C++
OdResult setCategoryId(const OdBmObjectId& id);
Parameters 
Description 
const OdBmObjectId& id 
[in] An identifier of the new category object.  

eOk if the new category was successfully set; otherwise, the method returns an appropriate error code.

Sets a new category for the DirectShape element.

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