API Reference > OdDb Classes > OdDbAttribute Class > OdDbAttribute Methods > setAttributeFromBlock Method > OdDbAttribute::setAttributeFromBlock Method (OdDbAttributeDefinition*, OdGeMatrix3d&)
OdDbAttribute::setAttributeFromBlock Method (OdDbAttributeDefinition*, OdGeMatrix3d&)
Syntax
C++
virtual void setAttributeFromBlock(const OdDbAttributeDefinition* pAttDef, const OdGeMatrix3d& blkXform);
Parameters 
Description 
const OdDbAttributeDefinition* pAttDef 
[in] Pointer to the attribute definition entity.  
const OdGeMatrix3d& blkXform 
[in] Block transformation matrix. 

Applies the settings from the specified attribute definition, then applies the specified block transformation matrix to to this Attribute entity. 

 

Equivalent to the ATTREDEF and INSERT commands. 

blkXform is the transformation matrix returned by the OdDbBlockReference::blockTransform() function of the OdDbBlockReference that will own this attribute.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.