API Reference > Functions > getDrawableShapeRepresentation Function
getDrawableShapeRepresentation Function
Syntax
C++
IFCCORE_EXPORT OdResult getDrawableShapeRepresentation(const OdArray<OdGiDrawablePtr>& entities, const OdDAIObjectId& subContextId, OdDAI::Model* pModel, OdDAIObjectId& shapeId, int shapeType);

IfcCore.h

Parameters 
Description 
const OdArray<OdGiDrawablePtr>& entities 
[in] An array of entities, which will be converted in the OdIfcShapeRepresentation object.  
const OdDAIObjectId& subContextId 
[in] An identifier of the sub-context object to which the shape representation will be added.  
OdDAI::Model* pModel 
[in] A raw pointer to the instance of the OdIfcModel class that represents the current model of the file.  
OdDAIObjectId& shapeId 
[out] A placeholder for the identifier of the created shape representation object.  

eOk if the shape representation object was successfully created; otherwise, the function returns an appropriate error code.

Creates an OdIfcShapeRepresentation object and fills the passed OdDAIObjectId instance with its identifier.

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