<?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: Insert command into existing macro to change the annotation scale in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6384077#M131896</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, nice macro. I'd like to use it too.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not sure exactly how you got this to work. I've tried several different itterations of moving the cannoscale command in front of "if", but I can't seem to get the ( ) and string right. Can you please spell it out for me. Thanks!! &amp;nbsp;(I also removed zoom e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one of my attemps&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;^C^C("cannoscale" 64 (if (setq tb (ssget)) (command "scale" tb "" '(0 0 0) (/ 64.0 48)))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 07:15:50 GMT</pubDate>
    <dc:creator>m_rogoff</dc:creator>
    <dc:date>2016-06-15T07:15:50Z</dc:date>
    <item>
      <title>Insert command into existing macro to change the annotation scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6348976#M131893</link>
      <description>&lt;P&gt;The macro below is to scale a selection set (title block and other text related items, which are in model space) to the scale of (/ 64.0 48), which actually changes the existing scale of 1/4" = 1'-0" to 3/16" = 1'-0".&lt;BR /&gt;I would also like to have this same macro change the annotation scale, in the lower right of the Autocad screen, to 3/16" = 1'-0".&lt;BR /&gt;I tried to introduce the cannoscale command and the system variable but could not get either to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^C(if (setq tb (ssget))(command "scale" tb "" '(0 0 0)(/ 64.0 48)))(command "zoom" "extents")&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 17:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6348976#M131893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert command into existing macro to change the annotation scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6349164#M131894</link>
      <description>&lt;P&gt;Perhaps you didn't&amp;nbsp;consolidate &lt;EM&gt;multiple&lt;/EM&gt; operations into &lt;EM&gt;one&lt;/EM&gt; 'thenexpr' argument for the (if) function.&amp;nbsp; Try collapsing all those commands into &lt;EM&gt;one&lt;/EM&gt; (command) function for the purpose, something like [untested]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^C(if (setq tb (ssget)) (command "scale" tb "" '(0 0 0) (/ 64.0 48) "cannoscale" 64 "zoom" "extents"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could also be done using (progn) to "wrap" multiple different functions into one 'thenexpr' argument, using (setvar) for the CANNOSCALE setting, and (command) for only the Scaling and Zooming.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 19:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6349164#M131894</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-05-25T19:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert command into existing macro to change the annotation scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6357023#M131895</link>
      <description>&lt;P&gt;I put the cannoscale command first, before the "if". That worked.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 10:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6357023#M131895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-31T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert command into existing macro to change the annotation scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6384077#M131896</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, nice macro. I'd like to use it too.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not sure exactly how you got this to work. I've tried several different itterations of moving the cannoscale command in front of "if", but I can't seem to get the ( ) and string right. Can you please spell it out for me. Thanks!! &amp;nbsp;(I also removed zoom e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one of my attemps&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;^C^C("cannoscale" 64 (if (setq tb (ssget)) (command "scale" tb "" '(0 0 0) (/ 64.0 48)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6384077#M131896</guid>
      <dc:creator>m_rogoff</dc:creator>
      <dc:date>2016-06-15T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert command into existing macro to change the annotation scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6384344#M131897</link>
      <description>&lt;P&gt;Here is what I ended up using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^Ccannoscale;3/16" = 1'-0";(if (setq tb (ssget))(command "scale" tb "" '(0 0 0)(/ 64.0 48)))(command "zoom" "extents")&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 10:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-command-into-existing-macro-to-change-the-annotation/m-p/6384344#M131897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T10:35:24Z</dc:date>
    </item>
  </channel>
</rss>

