AddAttribute does not honor width property of textstyle

AddAttribute does not honor width property of textstyle

Anonymous
Not applicable
254 Views
1 Reply
Message 1 of 2

AddAttribute does not honor width property of textstyle

Anonymous
Not applicable
Using 2008.

When using the AddAttribute method, the new ATTDEF entity is
created using the current textstyle. However, the current
textstyle has a width factor of 0.85, and the newly created
ATTDEF has a width factor of 1.00

If I manually create an ATTDEF using the ATTDEF command in
AutoCAD, then the width factor assigned to the current text
style is used.

Questions:
1. Is this a defect in the AddAttribute method?
2. How do you change the width of an ATTDEF using VBA? (you
can change it using the PROPS GUI in AutoCAD)

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
255 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Change the ScaleFactor of the Attribute after it is created to match the
Width of the TextSTyle.

"R.K. McSwain" wrote in message
news:5790884@discussion.autodesk.com...
Using 2008.

When using the AddAttribute method, the new ATTDEF entity is
created using the current textstyle. However, the current
textstyle has a width factor of 0.85, and the newly created
ATTDEF has a width factor of 1.00

If I manually create an ATTDEF using the ATTDEF command in
AutoCAD, then the width factor assigned to the current text
style is used.

Questions:
1. Is this a defect in the AddAttribute method?
2. How do you change the width of an ATTDEF using VBA? (you
can change it using the PROPS GUI in AutoCAD)

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes