API Reference > OdDAI Namespace > Classes > DerivedAttribute Class > DerivedAttribute Methods > DerivedAttribute::createObject Method
DerivedAttribute::createObject Method
Syntax
C++
static OdSmartPtr<DerivedAttribute> createObject(const char * name, Entity * parentEntity, DictionaryInstance * domain = NULL, ExplicitOrDerived * redeclaring = NULL);
Parameters 
Description 
const char * name 
[in] A pointer to a string that the contains the attribute name.  
DictionaryInstance * domain = NULL 
[in] A pointer to data type defenition referenced by the attribute.  
ExplicitOrDerived * redeclaring = NULL 
[in] A pointer to container with defenition of redeclared attribute. , const OdAnsiString &expression = "" 
optional 
[in] A flag that determines whether the value of the created attribute is optional (equal to true) or mandatory (equal to false).  

Returns a smart pointer to the created attribute instance.

Creates a new attribute with a specified name.

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