<?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: Lisp Routine help in Civil 3D Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9108652#M110991</link>
    <description>&lt;P&gt;Okay so I tried both LSP files. Both are doing the same thing as my LSP. It gives me a value of 0 when I click inside, no decimal spots or anything. I attempted to make a larger square and check to see if precision was the issue, and it was not. They all keep giving me 0.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 12:51:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-25T12:51:34Z</dc:date>
    <item>
      <title>Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9107205#M110989</link>
      <description>&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;I have a lisp that used to work just fine before. It gave me quick acreage of an area and was useful for reference.&lt;BR /&gt;I am on Civil 3D 2020, and it appears to be broken. It keeps giving me a value of "0". I opened up Visual Lisp to inspect. Lisp follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(defun c:AC ()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(SETQ IP (GETPOINT " Pick Internal Point: "))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(COMMAND "-BOUNDARY" ip "")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(SETQ SS (ENTLAST))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(PROGN (COMMAND "AREA" "o" SS)) &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(SETQ acres (/ (GETVAR "AREA") 43560))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(SETQ Acres (rndby acres 0.001))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(setq ktext (strcat (rtos acres 2 2)" AC" ))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(setq ht 5)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(command "_.text" ip ht "0" ktext)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;(princ)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(defun rndby (r b / tmp)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(setq tmp (rem r b))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(cond ((&amp;gt;= tmp (* 0.5 b)) (+ r (- b tmp)))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(T (- r tmp))))&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to find the error in my programming, or a lisp that can do what this one can. Attached is also the Lisp file for those that prefer to mess with it in VLisp.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Accidently escalated the topic. Eitherway, anyone's input will be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 20:39:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9107205#M110989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T20:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9107862#M110990</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try the following attached Lisp below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sqft_to_Acre.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/691348i2E5EBFF71FCB3D6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sqft_to_Acre.gif" alt="Sqft_to_Acre.gif" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sqft_to_Acre.gif&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original source of Lisp: &lt;A href="https://www.cadtutor.net/forum/topic/9008-selecting-a-point-for-a-boundary/" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Jowenn&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 07:19:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9107862#M110990</guid>
      <dc:creator>Jowennl</dc:creator>
      <dc:date>2019-10-25T07:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9108652#M110991</link>
      <description>&lt;P&gt;Okay so I tried both LSP files. Both are doing the same thing as my LSP. It gives me a value of 0 when I click inside, no decimal spots or anything. I attempted to make a larger square and check to see if precision was the issue, and it was not. They all keep giving me 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 12:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9108652#M110991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T12:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9130233#M110992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, try changing the tolerance from 0.001 to 0.0001&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt; (SETQ Acres (rndby acres 0.0001)) &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 10:26:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9130233#M110992</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2019-11-06T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9130547#M110993</link>
      <description>&lt;P&gt;The text is still putting a zero as the output.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9130547#M110993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-06T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9132310#M110994</link>
      <description>&lt;P&gt;Can you please share test drawing, I would like understand the drawing environment.&lt;/P&gt;
&lt;P&gt;Are the coordinates of your PLINE is very far from origin ?, is it pure C3D drawing ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9132310#M110994</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2019-11-07T07:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9140305#M110995</link>
      <description>&lt;P&gt;Hello @Anonymous&amp;nbsp;, &lt;BR /&gt;&lt;BR /&gt;Just checking to see if your problem has been solved. If not, please share the test drawing as mentioned by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895"&gt;@moogalm&lt;/a&gt;&amp;nbsp;so he can take a look and help you. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 00:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9140305#M110995</guid>
      <dc:creator>lynn_zhang</dc:creator>
      <dc:date>2019-11-12T00:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9141414#M110996</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;&lt;BR /&gt;I have attached one of my sites, and the Lisp. Please let me know if anyone has ideas, thank you all!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 13:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9141414#M110996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-12T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9141582#M110997</link>
      <description>&lt;P&gt;It is not because of Civil 3D 2020. It is because the current text style has an assigned height and the routine is written assuming a height of 0 is set for the current text style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either set the current text style to one with a height of zero before running the lsp or change the line:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "_.text" ip ht "0" ktext)&amp;nbsp; &amp;nbsp;to&amp;nbsp; &amp;nbsp;(command "_.text" ip "0" ktext) to use a style with a height assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or modify the lisp to set a current text style and height.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 14:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9141582#M110997</guid>
      <dc:creator>user181</dc:creator>
      <dc:date>2019-11-12T14:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp Routine help</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9142630#M110998</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4519146"&gt;@user181&lt;/a&gt;&amp;nbsp;That was it! Thank you all for your help! this will make things a lot more efficient for those who don't know C3D Catchments!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 22:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/lisp-routine-help/m-p/9142630#M110998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-12T22:49:42Z</dc:date>
    </item>
  </channel>
</rss>

