<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : text width lisp help</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : text width lisp help]]></description>
  <pubDate>Fri, 12 Jun 2026 14:20:42 +0000</pubDate>
  <lastBuildDate>Tue, 06 Oct 2015 05:28:25 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=11391</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[text width lisp help : in reply to john, it does happen...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30544&amp;title=text-width-lisp-help#30544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=550367">marcus007</a><br /><strong>Subject:</strong> 11391<br /><strong>Posted:</strong> 06.Oct.2015 at 05:28<br /><br /><div>in reply to john, it does happen from time to time and since i am putting in the effort i might as well get it perfect and thx to kent it is perfect.</div><div>thx kent</div>]]>
   </description>
   <pubDate>Tue, 06 Oct 2015 05:28:25 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30544&amp;title=text-width-lisp-help#30544</guid>
  </item> 
  <item>
   <title><![CDATA[text width lisp help : Anywhere in that (repeat) function...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30542&amp;title=text-width-lisp-help#30542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 11391<br /><strong>Posted:</strong> 05.Oct.2015 at 19:00<br /><br />Anywhere in that (repeat) function after the (setq obj ...), put this in, to override the width factor &#091;called the ScaleFactor VLA Property&#093; of plain Text objects only:<div><br></div><div><div>(if (= (vla-get-ObjectName obj) "AcDbText") (vla-put-ScaleFactor obj&nbsp;<span style="line-height: 1.4;">1.0))</span></div></div>]]>
   </description>
   <pubDate>Mon, 05 Oct 2015 19:00:18 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30542&amp;title=text-width-lisp-help#30542</guid>
  </item> 
  <item>
   <title><![CDATA[text width lisp help : So you are getting a lot of third-party...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30528&amp;title=text-width-lisp-help#30528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 11391<br /><strong>Posted:</strong> 05.Oct.2015 at 11:55<br /><br />So you are getting a lot of third-party drawings where the author has purposely changed the text width?&nbsp; I think I can count on one finger the number of times I've run into something like that.&nbsp; I think the vast majority of CAD techs accept the default of 1.0 for text width.&nbsp; Is this really such a problem that it needs to be addressed in a lisp routine?<br>]]>
   </description>
   <pubDate>Mon, 05 Oct 2015 11:55:12 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30528&amp;title=text-width-lisp-help#30528</guid>
  </item> 
  <item>
   <title><![CDATA[text width lisp help : ok so the deal is i handle a lot...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30526&amp;title=text-width-lisp-help#30526</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=550367">marcus007</a><br /><strong>Subject:</strong> 11391<br /><strong>Posted:</strong> 05.Oct.2015 at 03:38<br /><br /><table ="tableBorder" align="center" cellspacing="1" cellpadding="10" style="width: 1699px; color: rgb0, 0, 0; font-family: Tahoma, Arial, sans-serif; font-size: 12px; table-layout: fixed;"><t><tr ="msgTableRow" style="height: 200px; min-height: 200px;"><td valign="top" ="msgLineDevider" style="font-family: Tahoma, Arial, sans-serif; font-size: 9pt;"><div ="msg" style="width: 1516px;">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?<div><br></div><div><div>(defun c:c2Htext (/ textstyle layer selectionset integer selectionsetname obj)</div><div>&nbsp; (setq sc (getvar "ltscale"))</div><div>&nbsp; (setq newht (* sc 0.15625))</div><div>&nbsp; (vl-load-com)</div><div>&nbsp; (if (tblsearch "style" "Romand")</div><div>&nbsp; &nbsp; (setq textstyle t)</div><div>&nbsp; &nbsp; (princ "\n Text Style &lt;Romand&gt; is not existed ")</div><div>&nbsp; )</div><div>&nbsp; (if (tblsearch "LAYER" "Htext")</div><div>&nbsp; &nbsp; (setq layer t)</div><div>&nbsp; &nbsp; (princ "\n Layer &lt;Htext&gt; is not existed ")</div><div>&nbsp; )</div><div>&nbsp; (if (setq selectionset (ssget "_:L" '((0 . "TEXT,MTEXT"))))</div><div>&nbsp; &nbsp; (repeat (setq integer (sslength selectionset))</div><div>&nbsp; &nbsp; &nbsp; (setq selectionsetname</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ssname selectionset</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(setq integer (1- integer))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; (setq obj (vlax-ename-&gt;vla-object selectionsetname))</div><div>&nbsp; &nbsp; &nbsp; (vla-put-height obj newht)</div><div>&nbsp; &nbsp; &nbsp; (vla-put-color obj 256)</div><div>&nbsp; &nbsp; &nbsp; (if textstyle</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (vla-put-stylename obj "Romand")</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp; (if layer</div><div>&nbsp; &nbsp; &nbsp; &nbsp; (vla-put-layer obj "Htext")</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; )</div><div>&nbsp; &nbsp; (princ)</div><div>&nbsp; )</div><div>&nbsp; (princ)</div><div>)</div></div></div></td></tr><tr ="msgTableRow"><td ="msgLineDevider" style="font-family: Tahoma, Arial, sans-serif; font-size: 9pt;"></td></tr></t></table>]]>
   </description>
   <pubDate>Mon, 05 Oct 2015 03:38:01 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11391&amp;PID=30526&amp;title=text-width-lisp-help#30526</guid>
  </item> 
 </channel>
</rss>