Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
getDrawableShapeRepresentation Function
Syntax
C++
IFCCORE_EXPORT OdResult getDrawableShapeRepresentation(OdGiDrawablePtr pEnt, const OdDAIObjectId& subContextId, OdDAI::Model * pModel, OdDAIObjectId& shapeId, int shapeType);

Creates a shape representation of a specified GiDrawable entity inside a specified model and associates it with a specified representation context.

Parameters
Description
pEnt
[in] A smart pointer to an entity, that should be converted into a shape representation.
subContextId
[in] An identifier of the sub-context object to which the shape representation should be added.
pModel
[in] A smart pointer to an OdIfcModel object that represents the current model of the file.
shapeId
[out] The object identifier of the created shape representation.

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

The method sets the value of the created shape representation's identifier and returns it to a calling subroutine.

File: IfcCore.h

Copyright © 2002-2022. Open Design Alliance All rights reserved.