<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : Label Macro Help</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Label Macro Help]]></description>
  <pubDate>Thu, 11 Jun 2026 18:45:25 +0000</pubDate>
  <lastBuildDate>Tue, 21 Oct 2008 16:09:37 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=1147</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[Label Macro Help : Use quotes.  ^C^C_id;\_setenv;...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3333&amp;title=label-macro-help#3333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=22904">Sedlacek</a><br /><strong>Subject:</strong> 1147<br /><strong>Posted:</strong> 21.Oct.2008 at 16:09<br /><br />Use quotes.<br /><br />^C^C_id;\_setenv;mypoint;$M=$(getvar,lastpoint);_qleader;@;\;4;"($M=$(rtos,$(index,0,$(getenv,mypoint)),2,1),$M=$(rtos,$(index,1,$(getenv,mypoint)),2,1))";;<br /><br />or<br /><br />^C^C_id;\_setenv;mypoint;$M=$(getvar,lastpoint);_qleader;@;\;4;"$M=$(rtos,$(index,0,$(getenv,mypoint)),2,1),$M=$(rtos,$(index,1,$(getenv,mypoint)),2,1)";;^Z<span style="font-size:10px"><br /><br />Edited by Sedlacek - 21.Oct.2008 at 16:35</span>]]>
   </description>
   <pubDate>Tue, 21 Oct 2008 16:09:37 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3333&amp;title=label-macro-help#3333</guid>
  </item> 
  <item>
   <title><![CDATA[Label Macro Help : In fact there are ways to solve...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3329&amp;title=label-macro-help#3329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=3">Vladimir Michl</a><br /><strong>Subject:</strong> 1147<br /><strong>Posted:</strong> 21.Oct.2008 at 14:10<br /><br />In fact there are ways to solve this - e.g. the LT Extension add-on uses a lot of such Diesel macros.<DIV>&nbsp;</DIV><DIV>See <a href="http://www.xanadu.cz/en/apps/LTextensi&#111;n" target="_blank">www.xanadu.cz/en/apps/LTextension</A> </DIV>]]>
   </description>
   <pubDate>Tue, 21 Oct 2008 14:10:49 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3329&amp;title=label-macro-help#3329</guid>
  </item> 
  <item>
   <title><![CDATA[Label Macro Help : All diesel macro are avaluated...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3313&amp;title=label-macro-help#3313</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=22842">saverio</a><br /><strong>Subject:</strong> 1147<br /><strong>Posted:</strong> 21.Oct.2008 at 02:18<br /><br />All diesel macro are avaluated before executed.<br>So your getenv is evaluated BEFORE you clic. No way to solve this<br>]]>
   </description>
   <pubDate>Tue, 21 Oct 2008 02:18:10 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3313&amp;title=label-macro-help#3313</guid>
  </item> 
  <item>
   <title><![CDATA[Label Macro Help : So I&amp;#039;m working with AutoCAD...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3101&amp;title=label-macro-help#3101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=20553">kaleden</a><br /><strong>Subject:</strong> 1147<br /><strong>Posted:</strong> 30.Sep.2008 at 00:41<br /><br />So I'm working with AutoCAD LT and wanted to create a quick macro to label points on my drawing with the XY coordinates.<br><br>My macro SHOULD look like the following:<br>^C^C_id;\_setenv;mypoint;$M=$(getvar,lastpoint);_qleader;@;\;4;($M=$(rtos,$(index,0,$(getenv,mypoint)),2,1),$M=$(rtos,$(index,1,$(getenv,mypoint)),2,1));;<br><br>The idea is as follows:<br><ol><li>The user to specifies a point (_id;\)</li><li>A variable is set with that point (_setenv;mypoint;$M=$(getvar,lastpoint);</li><li>A leader is created with the first point at the location specified in (1) (_qleader;@;)</li><li>The user specifies the final point and the mypoint variable is spit out in the mtext box. (\;4;.... the remainder of the code).</li></ol>The problem I'm having is that "mypoint," though set correctly, isn't being recalled correctly. getenv seems to recall the previous state of "mypoint" only when using $M=$(getvar,lastpoint). If, however, I prompted the user to specify the variable value, getenv would properly pull it out and label the leader.<br><br>Perplexing.<br><br>My current workaround involves splitting the macro into two parts:<br>^C^C_id;\_setenv;mypoint;$M=$(getvar,lastpoint);<br>^C^C_qleader;@;\;4;$M=$(rtos,$(index,0,$(getenv,mypoint)),2,1),$M=$(rtos,$(index,1,$(getenv,mypoint)),2,1));;<br><br>This works, but I have to hit two shortcuts instead of one.<br><br>Can anyone help me bring this macro into one? Am I the only one having issues with this macro?<br><br>Thanks. <br>]]>
   </description>
   <pubDate>Tue, 30 Sep 2008 00:41:54 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1147&amp;PID=3101&amp;title=label-macro-help#3101</guid>
  </item> 
 </channel>
</rss>