CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Joined: 08.Apr.2015
Location: United States
Using: autocad Status: Offline
Points: 8
Topic: text width lisp help Posted: 05.Oct.2015 at 03:38
ok so the deal is i handle a lot of third party drawings, i convert the drawings to my layers, text styles, text heights and text widths. I have tweaked the following lisp program i found online to convert text and mtext to my layer "htext", my textstyle "htext" and set the text height to 0.15625 multiplied by the current ltscale. the problem is with text width, my text style "htext" width is set to 1.0, i know that when you change an existing text's text style that piece of text takes on all the properties of the style. but in this program it only changes mtext width and not old fashioned single dtext. can you help a brother out?
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018 Status: Offline
Points: 7175
Posted: 05.Oct.2015 at 11:55
So you are getting a lot of third-party drawings where the author has purposely changed the text width? I think I can count on one finger the number of times I've run into something like that. I think the vast majority of CAD techs accept the default of 1.0 for text width. Is this really such a problem that it needs to be addressed in a lisp routine?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023 Status: Offline
Points: 686
Posted: 05.Oct.2015 at 19:00
Anywhere in that (repeat) function after the (setq obj ...), put this in, to override the width factor [called the ScaleFactor VLA Property] of plain Text objects only:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum