<?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: Trying to select multiple windows get total area?? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428549#M96172</link>
    <description>&lt;P&gt;It seems to work great. I will test on real life senecrio.&lt;/P&gt;
&lt;P&gt;Thank you so very much!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 21:01:01 GMT</pubDate>
    <dc:creator>DC-MWA</dc:creator>
    <dc:date>2018-11-27T21:01:01Z</dc:date>
    <item>
      <title>Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426318#M96164</link>
      <description>&lt;P&gt;I figured out how to get the area from aec windows. Now I'm trying to select mutiple windows and get the total area.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I'm close but....&lt;/P&gt;
&lt;P&gt;I appreciate any input I can get.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;File attached...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426318#M96164</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2018-11-27T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426341#M96165</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code should be like......(only modification .....)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:42:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426341#M96165</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-27T05:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426369#M96166</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;When I tried yours I get message&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"error: ActiveX Server returned the error: unknown name: "AREA""&lt;/P&gt;
&lt;P&gt;this is because are is derived from doing the math on the two items "height" and "width".&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; ;(setq Height (vlax-get obj 'Height))&lt;BR /&gt; ;(setq Width (vlax-get obj 'Width))&lt;BR /&gt;&lt;BR /&gt; (setq area (vlax-get obj 'Area))&amp;nbsp; &amp;lt;-- there is no "area' attached to aec windows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426369#M96166</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2018-11-27T06:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426397#M96167</link>
      <description>&lt;P&gt;post drawing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try with.....&lt;/P&gt;
&lt;PRE&gt;(setq area (vlax-curve-getArea obj))&lt;/PRE&gt;
&lt;P&gt;instead of.....&lt;/P&gt;
&lt;PRE&gt;(setq area (vlax-get obj 'Area))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is "&lt;SPAN&gt;&lt;STRONG&gt;aec windows&lt;/STRONG&gt;"....????&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 07:03:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8426397#M96167</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-27T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428019#M96168</link>
      <description>&lt;P&gt;The issue isn't getting the area. I have that figured out.&lt;/P&gt;
&lt;P&gt;It's getting it to repeat as i select windows, then give me the total area when done selecting windows.&lt;/P&gt;
&lt;P&gt;See the WINDOWAREA.lsp file (it works great on one window only)&lt;/P&gt;
&lt;P&gt;See MULTIPLEWINDOWAREA.lsp (this is my attempt to get the program to repeat and add area as described above)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 18:11:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428019#M96168</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2018-11-27T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428061#M96169</link>
      <description>&lt;P&gt;Try this.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:mwinarea ( / ent obj Height Width)
  (setq count 0)
  (setq Area-Total 0)
  (while (and (&amp;lt; count 100)
              (setq ent (entsel "Select aec doors and windows to get area from: "))
	 )
 	(setq obj (vlax-ename-&amp;gt;vla-object (car ent)))
 	(setq Height (vlax-get obj 'Height))
 	(setq Width (vlax-get obj 'Width))
 	(setq area (* (vlax-get obj 'Width) (vlax-get obj 'Height))
 	(setq areasf (/ area 144))
        (print areasf)
        (setq Area-total (+ areasf Area-Total))
        (setq count (1+ count))
  ); end while
(princ (strcat "\nTotal Area:  " (vl-princ-to-string Area-total)))
(princ)
)
&lt;/PRE&gt;
&lt;P&gt;To check post a drawing......&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 18:49:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428061#M96169</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-27T18:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428444#M96170</link>
      <description>&lt;P&gt;I get error...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;APPLOAD mwinarea.lsp successfully loaded.&lt;BR /&gt;Command: malformed list on input&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 20:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428444#M96170</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2018-11-27T20:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428538#M96171</link>
      <description>&lt;P&gt;Missing parenthesis on this line:&lt;/P&gt;
&lt;P&gt;(setq area (* (vlax-get obj 'width) (vlax-get obj 'height))&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 20:55:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428538#M96171</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2018-11-27T20:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428549#M96172</link>
      <description>&lt;P&gt;It seems to work great. I will test on real life senecrio.&lt;/P&gt;
&lt;P&gt;Thank you so very much!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:01:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428549#M96172</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2018-11-27T21:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428551#M96173</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6400150"&gt;@DC-MWA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It seems to work great. I will test on real life senecrio.&lt;/P&gt;
&lt;P&gt;Thank you so very much!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I just made a small correction,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;&amp;nbsp;should get the credit. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428551#M96173</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2018-11-27T21:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to select multiple windows get total area??</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428561#M96174</link>
      <description>&lt;P&gt;Also why are you picking these one at a time? This would be very easy to modify so that you'd make one selection and get your tally. What doe this return when you pick a window:&amp;nbsp;(print (cdr (assoc 0 (entget (car (entsel))))))&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 21:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-select-multiple-windows-get-total-area/m-p/8428561#M96174</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2018-11-27T21:08:43Z</dc:date>
    </item>
  </channel>
</rss>

