TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on September 20, 2017, 09:50:42 AM

Title: TRACKING change in Text Attribute
Post by: mailmaverick on September 20, 2017, 09:50:42 AM
How to change TRACKING setting (\T) setting in Attribute of a Block ?
I want \T to be 2.65.
Title: Re: TRACKING change in Text Attribute
Post by: roy_043 on September 20, 2017, 11:50:07 AM
Of course the attribute would have to be an MTextAttribute and AFAIK adding this formatting to the attribute definition has no effect.

For an mtext attribute reference this works:
Code - Auto/Visual Lisp: [Select]
  1. (setq obj (vlax-ename->vla-object (car (nentsel))))
Title: Re: TRACKING change in Text Attribute
Post by: mailmaverick on September 25, 2017, 03:49:37 AM
Thanks Roy but problem is how to add Mtext Attribute ?
When i Do Right Click on Block ->Block Editor, it goes into the editor.
Then in the Menu above, there is an option of "Attribute Definition" which when i click, it always puts DTEXT and not MTEXT. And when I run TXT2MTXT Express Tool Command on it, it no longer remains an attribute and changes to Mtext.
Title: Re: TRACKING change in Text Attribute
Post by: roy_043 on September 25, 2017, 04:23:05 AM
http://autodesk.blogs.com/between_the_lines/2007/03/autocad_2008_ma.html