API Reference > OdIfc4x2 Namespace > Classes > IfcDerivedUnitElement Class > IfcDerivedUnitElement Methods > putAttr Method > IfcDerivedUnitElement::putAttr Method (char *, OdRxValue &)
IfcDerivedUnitElement::putAttr Method (char *, OdRxValue &)
Syntax
C++
virtual bool putAttr(const char * explicitAttrName, const OdRxValue & val);
Parameters 
Description 
const char * explicitAttrName 
[in] An ANSI string that contains the attribute name.  
const OdRxValue & val 
[in] A new attribute value to be set.  

true if the attribute value was successfully set; otherwise, the method returns false.

Sets a new value of an attribute that is specified by its name.

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