API Reference > OdDAI Namespace > Classes > ExplicitAttribute Class > ExplicitAttribute Methods > ExplicitAttribute::createObject Method
ExplicitAttribute::createObject Method
Syntax
C++
static OdSmartPtr<ExplicitAttribute> createObject(const char * name, Entity * parentEntity, DictionaryInstance * domain = NULL, bool optional = false);
Parameters 
Description 
const char * name 
[in] A pointer to a string that the contains the attribute name.  
Entity * parentEntity 
[in] A pointer to entity definition that keeps the attribute.  
DictionaryInstance * domain = NULL 
[in] A pointer to data type defenition referenced by the attribute. redeclaring 
bool optional = false 
[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 explicit attribute instance.

Creates a new explicit attribute definition for entity with a specified name.

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