API Reference > OdIfc Namespace > Classes > OdIfcEntity Class > OdIfcEntity Methods > OdIfcEntity::asCompound Method
OdIfcEntity::asCompound Method
Syntax
C++
static OdIfcCompoundPtr asCompound(OdSmartPtr<OdIfcEntity> pEnt);
Parameters 
Description 
OdSmartPtr<OdIfcEntity> pEnt 
[in] A smart pointer to an entity to get the compound object from.  

A smart pointer to a compound object.

Returns the result of the entity resolution represented as a compound object.

The method returns a valid smart pointer to the compound object if the resolution result is equal to kResCompound; otherwise, the method returns a NULL pointer.

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