API Reference > OdDAI Namespace > Classes > Attribute Class > Attribute Constructor > Attribute::Attribute Constructor (OdAnsiString, Entity *)
Attribute::Attribute Constructor (OdAnsiString, Entity *)
Syntax
C++
Attribute(OdAnsiString name, Entity * parentEntity = NULL);
Parameters 
Description 
OdAnsiString name 
[in] A pointer to a string that contains the attribute name.  
Entity * parentEntity = NULL 
[in] A raw pointer to the entity definition object that the newly created attribute belongs to. 

Creates a new attribute object with specified parameters.

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