<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search String Lisp in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503542#M73694</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;....&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;(setvar 'dimtofl ON) ....&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Missed one adjustment -- that should be&amp;nbsp; (setvar 'dimtofl &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;) .&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 20:48:33 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2021-07-28T20:48:33Z</dc:date>
    <item>
      <title>Search String Lisp</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503352#M73691</link>
      <description>&lt;DIV class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained"&gt;&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with a small issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any free .lsp that can search a specific string in a drawing and then use it in a formula? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me explain further. I have lots of dxf files, all of them having the following text string “TOTAL LENGTH:XXX” (XXX is variable). I need to enter every file and dimension some specific 2D objects with various lengths. I made the following lisp in which I set a dimension style as per my needs, but the dimension text height should be updated for every file at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;defun c:dsq()(command "dimclrt" "7" "" )&lt;/SPAN&gt;&lt;STRONG&gt;(command "dimasz" "1" "" )(command "dimtxt" "1" "" )&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;(command "dimclrd" "1" "" )(command "dimclre" "1" "" )(command "dimscale" "1" "" )(command "dimdec" "0" "" )(command "dimtvp" "0.7" "" )(command "dimtih" "OFF" "" )(command "dimtoh" "OFF" "" )(command "dimexo" "0" "" )(command "dimexe" "0.8" "" )(command "dimcen" "2" "" )(command "dimtofl" "ON" "" )(command "dimtfill" "0" "" )(princ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;&lt;SPAN&gt;So i want that XXX to be included at &lt;STRONG&gt;dimasz/dimtxt&lt;/STRONG&gt; and then set dimension text height&amp;nbsp;=&amp;gt; length value / 40 (this&amp;nbsp;is an acceptable factor for any&amp;nbsp;length).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;&lt;SPAN&gt;Any hints will be highly apreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503352#M73691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-28T19:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search String Lisp</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503418#M73692</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained"&gt;
&lt;P&gt;....&amp;nbsp;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;(command "dimclrt" "7" "" )&lt;/SPAN&gt;&lt;STRONG&gt;(command "dimasz" "1" "" )(command "dimtxt" "1" "" )&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;(command "dimclrd" "1" "" )(command "dimclre" "1" "" )(command "dimscale" "1" "" )(command "dimdec" "0" "" )(command "dimtvp" "0.7" "" )(command "dimtih" "OFF" "" )(command "dimtoh" "OFF" "" )(command "dimexo" "0" "" )(command "dimexe" "0.8" "" )(command "dimcen" "2" "" )(command "dimtofl" "ON" "" )(command "dimtfill" "0" "" ) ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I could probably come up with something for the DIMASZ/DIMTXT part, but not right now.&amp;nbsp; In the meantime, I suggest you set those dimensioning variables with &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;(setvar)&lt;/FONT&gt;&lt;/STRONG&gt; rather than &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;(command)&lt;/FONT&gt;&lt;/STRONG&gt;, because it will shorten the code and will be faster [though with this number of settings, you may not notice the time difference].&amp;nbsp; The numerical values can be just numbers without quotation marks; a couple of them want a number &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; when done this way, rather than a text string "OFF" when done as a command.&amp;nbsp; You won't need the &lt;FONT face="courier new,courier" color="#000000"&gt;""&lt;/FONT&gt; Enters at the ends.&amp;nbsp; And the System Variable names can be preceded by just an apostrophe, rather than enclosed in double-quotes before and after.&amp;nbsp; Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;.... (setvar 'dimclrt 7)&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;setvar&lt;/SPAN&gt; 'dimasz &lt;/STRONG&gt;&lt;FONT color="#00CCFF"&gt;&lt;EM&gt;whatever&lt;/EM&gt;&lt;/FONT&gt;&lt;STRONG&gt;) (&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;setvar&lt;/SPAN&gt; 'dimtxt&lt;/STRONG&gt; &lt;FONT color="#00CCFF"&gt;&lt;EM&gt;whatever&lt;/EM&gt;&lt;/FONT&gt;&lt;STRONG&gt;)&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;(setvar 'dimclrd 1) (setvar 'dimclre 1) (setvar 'dimscale 1) (setvar 'dimdec 0) (setvar 'dimtvp 0.7) (setvar 'dimtih &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;) (setvar 'dimtoh &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;) (setvar 'dimexo 0) (setvar 'dimexe 0.8) (setvar 'dimcen 2) (setvar 'dimtofl ON) (setvar 'dimtfill 0) ....&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:55:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503418#M73692</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-07-28T19:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search String Lisp</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503522#M73693</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I’ll change the code as mentioned.&lt;/P&gt;&lt;P&gt;If you can take a look at the DIMASZ/DIMTXT part, i’ll be grateful &lt;span class="lia-unicode-emoji" title=":handshake:"&gt;🤝&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503522#M73693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-28T20:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search String Lisp</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503542#M73694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;....&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;(setvar 'dimtofl ON) ....&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Missed one adjustment -- that should be&amp;nbsp; (setvar 'dimtofl &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;) .&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:48:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/search-string-lisp/m-p/10503542#M73694</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-07-28T20:48:33Z</dc:date>
    </item>
  </channel>
</rss>

