API Reference > Functions > OdTf Functions > newOdTfAttribute Function
newOdTfAttribute Function
Syntax
C++
TFCORE_EXPORT OdTfAttribute* newOdTfAttribute(const OdString& name, OdRxObject* pOwner, const OdTfVariant& value);

TfObject.h

Parameters 
Description 
const OdString& name 
[in] A name of the attribute.  
OdRxObject* pOwner 
[in] A pointer to the owner object.  
const OdTfVariant& value 
[in] A data type of the property.  

Returns a raw pointer to the created and initialized attribute object.

This function creates and initializes a new attribute object with specified parameters.

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