Geoffers Posted August 23, 2010 Share Posted August 23, 2010 I have recently noticed that I have a two bits of text in a drawing which have the same style (apparently) but display differently; one is bold, the other lighter and wider. On 'LISTing' the following appears: MTEXT Layer: "Textnotes" Space: Model space Handle = 37bbd Style = "notes20hand" Annotative: No Location: X= 566073 Y= -166986 Z= 0 Width: 800 Normal: X= 0 Y= 0 Z= 1 Rotation: 0 Text height: 40 Line spacing: Multiple (1.000000x = 67) Attachment: TopLeft Flow direction: ByStyle Contents: heavy and narrow Command: Command: list 1 found MTEXT Layer: "Textnotes" Space: Model space Handle = 37bbe Style = "notes20hand" Annotative: No Location: X= 566070 Y= -166774 Z= 0 Width: 800 Normal: X= 0 Y= 0 Z= 1 Rotation: 0 Text height: 40 Line spacing: Multiple (1.000000x = 67) Attachment: TopLeft Flow direction: ByStyle Contents: {\W1;light and wide} I had not realised in 20 years of using ACAD the possibility of putting curly brackets around the text and with starting \W1:. And - where did it come from? While investigating I see that the contents are shown, as in red above, in the Properties box but I had never noticed the brackets etc. I have always thought formatting was controlled by the style and of course dialogue over-rides.? And - 'matching properties' does does not change the other - either way...? Quote Link to comment Share on other sites More sharing options...
dbroada Posted August 23, 2010 Share Posted August 23, 2010 I've posted enough about how I hate embedded formatting in MTEXT so I won't go on again but it has caught you out here. If you highlight some text in the MTEXT editor and apply a format override, such as text height or a font change you get exactly what you are seeing. An override really only visible in properties and one that is a pain to get rid of. There are a number of LISP routines out there to strip the formatting or you can explode the text back to DTEXT. Quote Link to comment Share on other sites More sharing options...
Geoffers Posted August 23, 2010 Author Share Posted August 23, 2010 Well --- you live and learn; thanks Dave. Certainly, I have never knowingly embedded formatting in MTEXT... DTEXT:twisted::twisted::twisted::twisted: Quote Link to comment Share on other sites More sharing options...
Geoffers Posted August 23, 2010 Author Share Posted August 23, 2010 I tried to change the Width setting in dialogue from the '1' shown and text did chang but '1' didn't ??? THEN changed my UNITS setting from 0 to 0.00 and decimal appeared in WIDTH setting, so, learned a bit more :D:D:D Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted August 23, 2010 Share Posted August 23, 2010 I had not realised in 20 years of using ACAD the possibility of putting curly brackets around the text and with starting \W1:. It has been documented in the User's Guide since at least R14, and maybe even in R13... Here is a fairly new version of it. Quote Link to comment Share on other sites More sharing options...
Geoffers Posted August 23, 2010 Author Share Posted August 23, 2010 rkmcswain, thanks for the link. I guess I have never needed the info; everything always worked OK the dialogue box method... Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted August 23, 2010 Share Posted August 23, 2010 rkmcswain, thanks for the link. I guess I have never needed the info; everything always worked OK the dialogue box method... I've always referred to the codes over the years when building MTEXT strings using lisp or VBA... Quote Link to comment Share on other sites More sharing options...
Geoffers Posted August 23, 2010 Author Share Posted August 23, 2010 I've always referred to the codes over the years when building MTEXT strings using lisp or VBA... I have never used or needed those methods for bog standard notes... but still can't see when or why my 'normal' notes style got changed - in some cases... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.