Message 1 of 2
AddAttribute does not honor width property of textstyle

Not applicable
12-03-2007
08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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