API Reference > OdIfc Namespace > Classes > OdIfcCompound Class > OdIfcCompound Methods > getAttr Method > OdIfcCompound::getAttr Method (OdIfcAttribute)
OdIfcCompound::getAttr Method (OdIfcAttribute)
Syntax
C++
OdRxValue getAttr(const OdIfcAttribute attrDef) const;
Parameters 
Description 
const OdIfcAttribute attrDef 
[in] A value of the OdIfcAttribute enumeration that represents the attribute definition.  

Returns the current value of the attribute.

Retrieves the current value of an attribute specified by its definition.

The method provides late binding access to the attribute value by its definition. Attributes of select and aggregate data types are also supported.

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