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 = nullptr, ExplicitOrDerived * redeclaring = nullptr);
Parameters 
Description 
const char * name 
[in] A pointer to a string that the contains the attribute name.  
DictionaryInstance * domain = nullptr 
[in] A pointer to data type defenition referenced by the attribute.  
ExplicitOrDerived * redeclaring = nullptr 
[in] A pointer to container with defenition of redeclared attribute.  
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 derived attribute definition with a specified name.

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