<?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: Area field + m² in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/13015693#M123582</link>
    <description>hello,&lt;BR /&gt;this LISP is good help for me. thank you for your sharing.&lt;BR /&gt;&lt;BR /&gt;I'd like to make the following two changes: the command would not ask what the height of mtext, but it would use 200 height as default value. Also, the command would not ask what the precision of the value it displays, it would setting a precision of 3 d.p. as default value.&lt;BR /&gt;thanks.</description>
    <pubDate>Thu, 12 Sep 2024 04:04:47 GMT</pubDate>
    <dc:creator>fpanUVCLZ</dc:creator>
    <dc:date>2024-09-12T04:04:47Z</dc:date>
    <item>
      <title>Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6874532#M123565</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I believe this lisp may already exists but I've not be able to find it. Maybe one of you can help me.&lt;BR /&gt;I'm looking for a lisp that creates an mtext with the area of a polyline as object "field" and the suffix "m²", will be very useful for the work I'm doing. thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6874532#M123565</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2017-02-13T17:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6874705#M123566</link>
      <description>&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/link-between-text-mtext-and-attribute-with-field/td-p/3753464" target="_blank"&gt;http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/link-between-text-mtext-and-attribute-with-field/td-p/3753464&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Been there, done that.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 18:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6874705#M123566</guid>
      <dc:creator>dennis</dc:creator>
      <dc:date>2017-02-13T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6875186#M123567</link>
      <description>&lt;P&gt;Here's a very basic version&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/ mtobject mtht)
 (setq mtht     (getreal "\nEnsert mText Height: ")
       mtobject (vla-addmtext (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
                              (vlax-3d-point (getpoint "\nInsert mText Insertion Point :"))
                              0
                              (strcat "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId "
                                      (itoa (vla-get-objectid (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Polyline: ")))))
                                      "&amp;gt;%).Area \\f \"%lu2%pr2%th44\"&amp;gt;%"
                                      " m{\\H0.7x;\\S2^;}")))
 (vla-put-height mtobject mtht)&lt;BR /&gt; (princ))&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 21:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6875186#M123567</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-13T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6876028#M123568</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thank you, this error appears after importing lisp with appload. Same arror appear after running the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"somefunc.lsp successfully loaded.&lt;BR /&gt;somefunc.lsp successfully loaded.&lt;BR /&gt;Command: ; error: malformed list on input&lt;BR /&gt;Command: ; error: malformed list on input"&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 08:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6876028#M123568</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2017-02-14T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6876955#M123569</link>
      <description>&lt;P&gt;Try the attached&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6876955#M123569</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-14T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6878913#M123570</link>
      <description>&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;&lt;P&gt;I would make the following two changes: the command would not ask what the height of mtxt would be (it would use the default value), and more importantly, it would allow&amp;nbsp;the user to change&amp;nbsp;the pecision of&amp;nbsp;the value it displays. In the work I am currently doing, for example, I should not present decimal places.&lt;/P&gt;&lt;P&gt;I also noticed that the text is not placed at the insertion point if the UCS is rotated.&lt;BR /&gt;Still, it's already a good help, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6878913#M123570</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2017-02-15T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6879895#M123571</link>
      <description>&lt;P&gt;I am mostly working in wcs and never try to catch ucs in my routines. Those are good points. Try below code.&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/ mtobject mtprec)
 (initget 7)
 (setq mtprec     (getint "\nEnter mText decimal Precision: ")
       mtobject (vla-addmtext (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
                              (vlax-3d-point (trans (getpoint "\nInsert mText Insertion Point :") 1 0))
                              0
                              (strcat "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId "
                                      (itoa (vla-get-objectid (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Polyline: ")))))
                                      "&amp;gt;%).Area \\f \"%lu2%pr" (if (&amp;gt; mtprec 8) "8" (itoa mtprec)) "%th44\"&amp;gt;%"
                                      " m{\\H0.7x;\\S2^;}")))
 (vla-put-height mtobject (getvar 'textsize))
 (mapcar '(lambda (x y) (setpropertyvalue (entlast) x y)) '("Direction/X" "Direction/Y") (list (car (getvar 'ucsxdir)) (cadr (getvar 'ucsxdir))))
 (princ))&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 15:46:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6879895#M123571</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-15T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6880114#M123572</link>
      <description>&lt;P&gt;Nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The only thing is, if i'm using it correctly, it doesn't allow to remove all decimal places with the "Enter mText decimal Precision" input. The minimum acceptable is 1.&lt;/P&gt;&lt;P&gt;I would also present the last &lt;SPAN&gt;value &lt;/SPAN&gt;imputed&amp;nbsp;in this option as default when running the command again command , to speed up the process of multiple area tagging.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:58:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6880114#M123572</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2017-02-15T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6880196#M123573</link>
      <description>&lt;P&gt;That shouldn't be too difficult.&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/ mtobject prec)
 (if (null *somefuncmtprec*) (setq *somefuncmtprec* 2))
 (initget 4)
 (setq prec     (getint (strcat "\nEnter mText decimal Precision &amp;lt;" (itoa *somefuncmtprec*) "&amp;gt;: "))
       mtobject (vla-addmtext (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))
                              (vlax-3d-point (trans (getpoint "\nInsert mText Insertion Point :") 1 0))
                              0
                              (strcat "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId "
                                      (itoa (vla-get-objectid (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Polyline: ")))))
                                      "&amp;gt;%).Area \\f \"%lu2%pr" (if (&amp;gt; prec 8) (progn (setq *somefuncmtprec* 8) "8") (if (null prec) (itoa *somefuncmtprec*) (progn (setq *somefuncmtprec* prec) (itoa *somefuncmtprec*)))) "%th44\"&amp;gt;%"
                                      " m{\\H0.7x;\\S2^;}")))
 (vla-put-height mtobject (getvar 'textsize))
 (mapcar '(lambda (x y) (setpropertyvalue (entlast) x y)) '("Direction/X" "Direction/Y") (list (car (getvar 'ucsxdir)) (cadr (getvar 'ucsxdir))))
 (princ))&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 17:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6880196#M123573</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-15T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6881859#M123574</link>
      <description>&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It works beautifully and&amp;nbsp;will be a great help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 09:36:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6881859#M123574</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2017-02-16T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6882864#M123575</link>
      <description>&lt;P&gt;You are welcome &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6882864#M123575</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-02-16T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/7159209#M123576</link>
      <description>&lt;P&gt;Hi,Aclima&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the attached file may be found useful to You.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 10:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/7159209#M123576</guid>
      <dc:creator>SufyanAhmed</dc:creator>
      <dc:date>2017-06-17T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11137775#M123577</link>
      <description>&lt;P&gt;hello. This lisp is not working anymore, can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:11:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11137775#M123577</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2022-04-29T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11137886#M123578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is working the same way as before,&amp;nbsp; also in 2023.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open a new file, draw a rectangle&lt;/P&gt;
&lt;P&gt;load the lisp by APPLOAD and run command AA2&lt;/P&gt;
&lt;P&gt;after this (you say it dowsn't work),&lt;/P&gt;
&lt;P&gt;open your Textscreen[F2] and share the log content with us all.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:03:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11137886#M123578</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-04-29T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138005#M123579</link>
      <description>&lt;P&gt;Hi, Thanks for the feed back, I'm referring to this one from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3261555"&gt;@Ranjit_Singh&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cad loads but doesn't run, command is "mtobject", right?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1061334iD13606CF6DF45916/image-size/large?v=v2&amp;amp;px=999" role="button" title="cap.jpg" alt="cap.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138005#M123579</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2022-04-29T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138079#M123580</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;EM&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4408278"&gt;@aclima&lt;/a&gt;&amp;nbsp; schrieb:&lt;/EM&gt;&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;Hi, Thanks for the feed back, I'm referring to this one from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3261555"&gt;@Ranjit_Singh&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Oh, okay - I checked the other one.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Cad loads but doesn't run, command&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;No (error)message?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Normally you get a message!?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Like "unknown command" is you try to start a command what doesn't exist.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is "mtobject", right?&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CADffm_0-1651242197262.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1061349i0ABC451E65F40123/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CADffm_0-1651242197262.png" alt="CADffm_0-1651242197262.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;That looks more like "somefunc" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:24:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138079#M123580</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-04-29T14:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138145#M123581</link>
      <description>&lt;P&gt;somefunc, of course.&lt;/P&gt;&lt;P&gt;silly mistake. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Beautiful!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:44:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/11138145#M123581</guid>
      <dc:creator>aclima</dc:creator>
      <dc:date>2022-04-29T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Area field + m²</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/13015693#M123582</link>
      <description>hello,&lt;BR /&gt;this LISP is good help for me. thank you for your sharing.&lt;BR /&gt;&lt;BR /&gt;I'd like to make the following two changes: the command would not ask what the height of mtext, but it would use 200 height as default value. Also, the command would not ask what the precision of the value it displays, it would setting a precision of 3 d.p. as default value.&lt;BR /&gt;thanks.</description>
      <pubDate>Thu, 12 Sep 2024 04:04:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/13015693#M123582</guid>
      <dc:creator>fpanUVCLZ</dc:creator>
      <dc:date>2024-09-12T04:04:47Z</dc:date>
    </item>
  </channel>
</rss>

