C++
AcDbAttribute( const AcGePoint3d& position, const ACHAR* text, const ACHAR* tag, AcDbObjectId style = AcDbObjectId::kNull );
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.
Parameters
Parameters | Description |
---|---|
position | Input location point for the attribute |
text | Input text string for the attribute |
tag | Input tag string for the attribute |
style | Input object ID of the AcDbTextStyleTableRecord to be referenced by the attribute |