AcDbAttribute::AcDbAttribute

AcDbAttribute(
    const AcGePoint3d& position, 
    const ACHAR* text, 
    const ACHAR* tag, 
    AcDbObjectId style = AcDbObjectId::kNull
);
Parameters
Parameters 
Description 
const AcGePoint3d& position 
Input location point for the attribute 
const ACHAR* text 
Input text string for the attribute 
const ACHAR* tag 
Input tag string for the attribute 
AcDbObjectId style = AcDbObjectId::kNull 
Input object ID of the AcDbTextStyleTableRecord to be referenced by the attribute 
Description

This constructor initializes the attribute object with the arguments passed in. position must be in WCS coordinates. Copies of the text and tag strings will be used, so the caller is responsible for the memory used by the strings passed in. If used, style must be a valid AcDbTextStyleTableRecord object ID. 

In addition, the field length is initialized to 0, the flags to 0 (that is, nonconstant, visible, not preset, and not verifiable), and all the initializations for a default new AcDbText object (except text and position) take place. 

 

Links