Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
ExplicitAttribute::createObject Method
Syntax
C++
static OdSmartPtr<ExplicitAttribute> createObject(const char * name, Entity * parentEntity, DictionaryInstance * domain = NULL, bool optional = false);

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

Parameters
Description
name
[in] A pointer to a null-terminated string that the contains the attribute name.
parentEntity
[in] A pointer to an entity definition that contains the attribute.
domain
[in] A pointer to the data type definition referenced by the attribute. redeclaring
optional
[in] A flag that determines whether the value of the created attribute is optional (equal to true) or mandatory (equal to false).

A smart pointer to the created explicit attribute instance.

Copyright © 2002-2022. Open Design Alliance All rights reserved.