<?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 or Command? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761991#M317751</link>
    <description>&lt;P&gt;Thank you for the help, that works for selecting 1 solid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set it up where you can window a group of solids?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anderson&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2015 16:35:19 GMT</pubDate>
    <dc:creator>anderson51</dc:creator>
    <dc:date>2015-08-07T16:35:19Z</dc:date>
    <item>
      <title>LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761780#M317749</link>
      <description>&lt;P&gt;I am trying to figure out how to write a LISP routine or generate an equation within a command that will take MASSPROP and divide that number by 17.28, then times it by 4.9.......when I click on a solid?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apprecite the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anderson&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 14:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761780#M317749</guid>
      <dc:creator>anderson51</dc:creator>
      <dc:date>2015-08-07T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761813#M317750</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74986"&gt;@anderson51&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to figure out how to write a LISP routine or generate an equation within a command that will take MASSPROP and divide that number by 17.28, then times it by 4.9.......when I click on a solid?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apprecite the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anderson&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Anderson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@ the&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;Visual LISP, AutoLISP and General Customization&lt;/A&gt;&amp;nbsp;forum should &lt;SPAN class="hps"&gt;be easier to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help with Auto/Visual LISP&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;Perhaps&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;something like this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the trick&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ obj ss val vol)
    (if (and (princ "\n Select a 3D Solid: ")
             (setq ss (ssget "_+.:E:S" '((0 . "3DSOLID"))))
        )
        (progn
            (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss 0))
                  vol (vla-get-volume obj)
                  val (* (/ vol 17.28) 4.9)
            )
            (princ (strcat "\n The value is: " (rtos val 2 2)))
        )
        (princ "\n You didn't select a 3D Solid... ")
    )
    (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:20:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761813#M317750</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-07T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761991#M317751</link>
      <description>&lt;P&gt;Thank you for the help, that works for selecting 1 solid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set it up where you can window a group of solids?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anderson&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:35:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761991#M317751</guid>
      <dc:creator>anderson51</dc:creator>
      <dc:date>2015-08-07T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761997#M317752</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74986"&gt;@anderson51&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the help, that works for selecting 1 solid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to set it up where you can window a group of solids?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anderson&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, Anderson&lt;BR /&gt;The final &lt;SPAN class="hps"&gt;result&lt;/SPAN&gt; &lt;SPAN&gt;would be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;only the total?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5761997#M317752</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-07T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762006#M317753</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:45:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762006#M317753</guid>
      <dc:creator>anderson51</dc:creator>
      <dc:date>2015-08-07T16:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762027#M317754</link>
      <description>&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ obj ss tot val vol)
    (if (and (princ "\n Select a 3D Solid: ")
             (setq ss (ssget '((0 . "3DSOLID"))))
        )
        (progn
            (setq tot 0.0)
            (repeat (setq i (sslength ss))
                (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq i (1- i))))
                      vol (vla-get-volume obj)
                      val (* (/ vol 17.28) 4.9)
                      tot (+ tot val)
                )
            )
            (princ (strcat "\n The value is: " (rtos tot 2 2)))
        )
        (princ "\n You didn't select a 3D Solid... ")
    )
    (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:53:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762027#M317754</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-07T16:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762037#M317755</link>
      <description>&lt;P&gt;Fantastic, thank you for the help sir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anderson&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:59:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762037#M317755</guid>
      <dc:creator>anderson51</dc:creator>
      <dc:date>2015-08-07T16:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Command?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762207#M317756</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74986"&gt;@anderson51&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Fantastic, thank you for the help sir.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anderson&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, Anderson!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 18:43:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-or-command/m-p/5762207#M317756</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-07T18:43:36Z</dc:date>
    </item>
  </channel>
</rss>

