<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find Area in Acres</title>
	<atom:link href="http://www.lazydrafter.com/autocad-tips/find-area-in-acres/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres</link>
	<description>AutoCAD tips for the lazy drafter.</description>
	<lastBuildDate>Thu, 02 Feb 2012 09:34:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jim</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-315</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 18 Dec 2008 16:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-315</guid>
		<description>Shouldn&#039;t the first line be:(defun C:CalcAREA ()
And I get an Unknown command when ever I enter Listarea or tagarea
Jim</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t the first line be:(defun C:CalcAREA ()<br />
And I get an Unknown command when ever I enter Listarea or tagarea<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-312</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-312</guid>
		<description>Trying again with more knowledge :)


(defun CalcAREA () 
  (setq a 0 
        ss (ssget &#039;((-4 . &quot;&quot;))
            )
   ) 
  (if ss 
    (progn 
      (setq n (1- (sslength ss))) 
      (while (&gt;= n 0) 
        (command &quot;_.area&quot; &quot;_o&quot; (ssname ss n)) 
        (setq a (  a (getvar &quot;area&quot;)) 
              n (1- n))
      ) ;;close while
     );;close progn 
    (alert &quot;\nNo Objects with AREA selected!&quot;)
) ;;close if
  (princ) 
) ;;close defun
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun C:ListAREA ()
(calcarea)
(if (/= a 0)
(progn
     (alert 
        (strcat &quot;The total area of the selected object(s) is\n\n     &quot; 
        (strcat 
             (rtos a 2 2) &quot; Sq In,\nor\n        &quot; 
             (rtos (/ a 144.0) 2 2) &quot; Sq Ft, \nor\n             &quot; 
             (rtos (cvunit a &quot;sq in&quot; &quot;Acres&quot;) 2 3) &quot; Acres&quot;) 
         ))
)
)
(princ)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun C:TAGAREA ()
(calcarea)
(if (/= a 0)
(progn
(setq str3
        (strcat            
             (rtos (/ a 144.0) 2 2) &quot; Sq Ft\\P&quot; 
             (rtos (cvunit a &quot;sq in&quot; &quot;acres&quot;) 2 3) &quot; Acres&quot;
         )
)
;(txstla)
(setq at2  (getpoint &quot;\nLocation for text... &quot;))
(command &quot;Mtext&quot; at2 &quot;R&quot; &quot;0&quot; &quot;J&quot; &quot;MC&quot; &quot;W&quot; &quot;0&quot; str3 &quot;&quot;)
)
)
(princ)
)
</description>
		<content:encoded><![CDATA[<p>Trying again with more knowledge :)</p>
<p>(defun CalcAREA ()<br />
  (setq a 0<br />
        ss (ssget &#8216;((-4 . &#8220;&#8221;))<br />
            )<br />
   )<br />
  (if ss<br />
    (progn<br />
      (setq n (1- (sslength ss)))<br />
      (while (&gt;= n 0)<br />
        (command &#8220;_.area&#8221; &#8220;_o&#8221; (ssname ss n))<br />
        (setq a (  a (getvar &#8220;area&#8221;))<br />
              n (1- n))<br />
      ) ;;close while<br />
     );;close progn<br />
    (alert &#8220;\nNo Objects with AREA selected!&#8221;)<br />
) ;;close if<br />
  (princ)<br />
) ;;close defun<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(defun C:ListAREA ()<br />
(calcarea)<br />
(if (/= a 0)<br />
(progn<br />
     (alert<br />
        (strcat &#8220;The total area of the selected object(s) is\n\n     &#8221;<br />
        (strcat<br />
             (rtos a 2 2) &#8221; Sq In,\nor\n        &#8221;<br />
             (rtos (/ a 144.0) 2 2) &#8221; Sq Ft, \nor\n             &#8221;<br />
             (rtos (cvunit a &#8220;sq in&#8221; &#8220;Acres&#8221;) 2 3) &#8221; Acres&#8221;)<br />
         ))<br />
)<br />
)<br />
(princ)<br />
)<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(defun C:TAGAREA ()<br />
(calcarea)<br />
(if (/= a 0)<br />
(progn<br />
(setq str3<br />
        (strcat<br />
             (rtos (/ a 144.0) 2 2) &#8221; Sq Ft\\P&#8221;<br />
             (rtos (cvunit a &#8220;sq in&#8221; &#8220;acres&#8221;) 2 3) &#8221; Acres&#8221;<br />
         )<br />
)<br />
;(txstla)<br />
(setq at2  (getpoint &#8220;\nLocation for text&#8230; &#8220;))<br />
(command &#8220;Mtext&#8221; at2 &#8220;R&#8221; &#8220;0&#8243; &#8220;J&#8221; &#8220;MC&#8221; &#8220;W&#8221; &#8220;0&#8243; str3 &#8220;&#8221;)<br />
)<br />
)<br />
(princ)<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-311</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-311</guid>
		<description>This &quot;reply&quot; window dislikes less-than and greater-than symbols in lisp, sorry.

Okay in the function calcarea, third line down, we&#039;re setting the variable SS to a Selection Set. 

the reply window truncates it to (-4 . “”)
it should read:
(-4 . “[insert_less_than_symbol_here]OR”)
(0 . “CIRCLE”)
(0 . “region”)
(0 . “*polyline”)
(0 . “spline”)
(0 . “ellipse”)
(-4 . “OR[insert_greater_than_symbol_here]“)

Be sure to replace [insert_less_than_symbol_here] and [insert_greater_than_symbol_here] with the real symbols.</description>
		<content:encoded><![CDATA[<p>This &#8220;reply&#8221; window dislikes less-than and greater-than symbols in lisp, sorry.</p>
<p>Okay in the function calcarea, third line down, we&#8217;re setting the variable SS to a Selection Set. </p>
<p>the reply window truncates it to (-4 . “”)<br />
it should read:<br />
(-4 . “[insert_less_than_symbol_here]OR”)<br />
(0 . “CIRCLE”)<br />
(0 . “region”)<br />
(0 . “*polyline”)<br />
(0 . “spline”)<br />
(0 . “ellipse”)<br />
(-4 . “OR[insert_greater_than_symbol_here]“)</p>
<p>Be sure to replace [insert_less_than_symbol_here] and [insert_greater_than_symbol_here] with the real symbols.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Smith</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-310</link>
		<dc:creator>Michael Smith</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-310</guid>
		<description>Command: (LOAD &quot;C:/Support/Lisp/area-acres.lsp&quot;) *Cancel*
bad argument type: consp “”

error message I received</description>
		<content:encoded><![CDATA[<p>Command: (LOAD &#8220;C:/Support/Lisp/area-acres.lsp&#8221;) *Cancel*<br />
bad argument type: consp “”</p>
<p>error message I received</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-309</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-309</guid>
		<description>Nope, that didn&#039;t work either.  maybe its the less-than and greater-than symbols

(ssget 
&#039;(
(-4 . &quot;[insert_less_than_symbol_here]OR&quot;)
(0 . &quot;CIRCLE&quot;)
(0 . &quot;region&quot;)
(0 . &quot;*polyline&quot;)
(0 . &quot;spline&quot;)
(0 . &quot;ellipse&quot;)
(-4 . &quot;OR[insert_greater_than_symbol_here]&quot;)
)</description>
		<content:encoded><![CDATA[<p>Nope, that didn&#8217;t work either.  maybe its the less-than and greater-than symbols</p>
<p>(ssget<br />
&#8216;(<br />
(-4 . &#8220;[insert_less_than_symbol_here]OR&#8221;)<br />
(0 . &#8220;CIRCLE&#8221;)<br />
(0 . &#8220;region&#8221;)<br />
(0 . &#8220;*polyline&#8221;)<br />
(0 . &#8220;spline&#8221;)<br />
(0 . &#8220;ellipse&#8221;)<br />
(-4 . &#8220;OR[insert_greater_than_symbol_here]&#8220;)<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-308</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-308</guid>
		<description>This reply window is truncating a line in the function.  The selection set &quot;SS&quot; in the third line should allow collection anything that has area, circles, regions, splines, plines, ellipses.

Let me try breaking it up
(ssget 
&#039;(
(-4 . &quot;&quot;)
)</description>
		<content:encoded><![CDATA[<p>This reply window is truncating a line in the function.  The selection set &#8220;SS&#8221; in the third line should allow collection anything that has area, circles, regions, splines, plines, ellipses.</p>
<p>Let me try breaking it up<br />
(ssget<br />
&#8216;(<br />
(-4 . &#8220;&#8221;)<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-307</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-307</guid>
		<description>(defun CalcAREA () 
  (setq a 0 
        ss (ssget &#039;((-4 . &quot;&quot;))
            )
   ) 
  (if ss 
    (progn 
      (setq n (1- (sslength ss))) 
      (while (&gt;= n 0) 
        (command &quot;_.area&quot; &quot;_o&quot; (ssname ss n)) 
        (setq a (  a (getvar &quot;area&quot;)) 
              n (1- n))
      ) ;;close while
     );;close progn 
    (alert &quot;\nNo Objects with AREA selected!&quot;)
) ;;close if
  (princ) 
) ;;close defun
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun C:ListAREA ()
(calcarea)
(if (/= a 0)
(progn
     (alert 
        (strcat &quot;The total area of the selected object(s) is\n\n     &quot; 
        (strcat 
             (rtos a 2 2) &quot; Sq In,\nor\n        &quot; 
             (rtos (/ a 144.0) 2 2) &quot; Sq Ft, \nor\n             &quot; 
             (rtos (cvunit a &quot;sq in&quot; &quot;Acres&quot;) 2 3) &quot; Acres&quot;) 
         ))
)
)
(princ)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun C:TAGAREA ()
(calcarea)
(if (/= a 0)
(progn
(setq str3
        (strcat            
             (rtos (/ a 144.0) 2 2) &quot; Sq Ft\\P&quot; 
             (rtos (cvunit a &quot;sq in&quot; &quot;acres&quot;) 2 3) &quot; Acres&quot;
         )
)
;(txstla)
(setq at2  (getpoint &quot;\nLocation for text... &quot;))
(command &quot;Mtext&quot; at2 &quot;R&quot; &quot;0&quot; &quot;J&quot; &quot;MC&quot; &quot;W&quot; &quot;0&quot; str3 &quot;&quot;)
)
)
(princ)
)</description>
		<content:encoded><![CDATA[<p>(defun CalcAREA ()<br />
  (setq a 0<br />
        ss (ssget &#8216;((-4 . &#8220;&#8221;))<br />
            )<br />
   )<br />
  (if ss<br />
    (progn<br />
      (setq n (1- (sslength ss)))<br />
      (while (&gt;= n 0)<br />
        (command &#8220;_.area&#8221; &#8220;_o&#8221; (ssname ss n))<br />
        (setq a (  a (getvar &#8220;area&#8221;))<br />
              n (1- n))<br />
      ) ;;close while<br />
     );;close progn<br />
    (alert &#8220;\nNo Objects with AREA selected!&#8221;)<br />
) ;;close if<br />
  (princ)<br />
) ;;close defun<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(defun C:ListAREA ()<br />
(calcarea)<br />
(if (/= a 0)<br />
(progn<br />
     (alert<br />
        (strcat &#8220;The total area of the selected object(s) is\n\n     &#8221;<br />
        (strcat<br />
             (rtos a 2 2) &#8221; Sq In,\nor\n        &#8221;<br />
             (rtos (/ a 144.0) 2 2) &#8221; Sq Ft, \nor\n             &#8221;<br />
             (rtos (cvunit a &#8220;sq in&#8221; &#8220;Acres&#8221;) 2 3) &#8221; Acres&#8221;)<br />
         ))<br />
)<br />
)<br />
(princ)<br />
)<br />
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />
(defun C:TAGAREA ()<br />
(calcarea)<br />
(if (/= a 0)<br />
(progn<br />
(setq str3<br />
        (strcat<br />
             (rtos (/ a 144.0) 2 2) &#8221; Sq Ft\\P&#8221;<br />
             (rtos (cvunit a &#8220;sq in&#8221; &#8220;acres&#8221;) 2 3) &#8221; Acres&#8221;<br />
         )<br />
)<br />
;(txstla)<br />
(setq at2  (getpoint &#8220;\nLocation for text&#8230; &#8220;))<br />
(command &#8220;Mtext&#8221; at2 &#8220;R&#8221; &#8220;0&#8243; &#8220;J&#8221; &#8220;MC&#8221; &#8220;W&#8221; &#8220;0&#8243; str3 &#8220;&#8221;)<br />
)<br />
)<br />
(princ)<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Jones</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-306</link>
		<dc:creator>Josh Jones</dc:creator>
		<pubDate>Wed, 17 Dec 2008 17:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-306</guid>
		<description>I get the same &quot;malformed list&quot; error message in ACAD &#039;08.</description>
		<content:encoded><![CDATA[<p>I get the same &#8220;malformed list&#8221; error message in ACAD &#8217;08.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Smith</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-303</link>
		<dc:creator>Michael Smith</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-303</guid>
		<description>malformed list on input
error message I got on loading the program
use Acad 2009
I remarked out the (txstla) in the file.</description>
		<content:encoded><![CDATA[<p>malformed list on input<br />
error message I got on loading the program<br />
use Acad 2009<br />
I remarked out the (txstla) in the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Culp</title>
		<link>http://www.lazydrafter.com/autocad-tips/find-area-in-acres/comment-page-1#comment-302</link>
		<dc:creator>Randall Culp</dc:creator>
		<pubDate>Tue, 16 Dec 2008 19:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazydrafter.com/?p=216#comment-302</guid>
		<description>oops, there is a call to (txstla) just before the MTEXT command in the function above that needs to be removed.  Its a function I use to set the proper style and layer for text.</description>
		<content:encoded><![CDATA[<p>oops, there is a call to (txstla) just before the MTEXT command in the function above that needs to be removed.  Its a function I use to set the proper style and layer for text.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

