<?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: How to run multiple commands at once. in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9288680#M115124</link>
    <description>&lt;P&gt;Try putting this command macro into a Tool Palette button:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;^C^CExplode ALL -Overkill all ;;SELECT \Pedit m P ;j ;c ;-Purge a * n;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things needed tweaking [e.g. the hyphen prefixes on some command names, spelling out of ALL for the Explode selection, the * for all in the PURGE command] compared to the literal aspects of your description, so I hope it ends up doing what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SELECT command with &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; backslash for user input can take any amount of selections and selection options [unlike other commands involving object selection that would need separate User-input backslashes for each selection], then the PEDIT command uses the Previous selection established by that.&amp;nbsp; Spaces are just like spaces or enters at the command line; semicolons are Enters.&amp;nbsp; [Many people like to use semicolons for all; I prefer spaces except when there is more than one together, in which case with all spaces it's harder to "read" how many there are.]&amp;nbsp; The ^C^C at the front is a double cancel, to ensure you get out of any command that may be running when you pick the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the&amp;nbsp;&lt;SPAN&gt;(initcommandversion) business described by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;is needed only if you do the Exploding in an AutoLisp (command) function, which can Explode only one thing at a time unless you do that or use other ways to handle that limitation.&amp;nbsp; It is not needed in a direct command-line Explode command such as in a macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[You can shorten it by one character if you set the PEDITACCEPT System Variable to not ask whether you want to convert Lines and Arcs.]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 15:58:19 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-01-31T15:58:19Z</dc:date>
    <item>
      <title>How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9284239#M115120</link>
      <description>&lt;P&gt;One of my signs can have many parts. And, I have hundreds of signs. I found to have a specific order of&amp;nbsp;commands to make my parts cleaned for the laser cutter. And I need them in a specific order as errors may happen if not completed in order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Explode &amp;gt; ‘a’ (for all)&amp;gt; ‘Enter’&lt;/P&gt;&lt;P&gt;2) Overkill &amp;gt; ‘all’ &amp;gt; ‘Enter’ &amp;gt; ‘Enter’ as parameters are already set.&lt;/P&gt;&lt;P&gt;3) Pedit &amp;gt; m (multiple) &amp;gt; Select Objects &amp;gt; Enter (For 'y') &amp;gt; 'j' (for join) &amp;gt; 'Enter' &amp;gt; 'Enter' (for 0.000 Fuzz) &amp;gt; 'c' (for close) &amp;gt; Enter &amp;gt; Enter again (for close pedit)&lt;/P&gt;&lt;P&gt;4) Purge &amp;gt; ‘a’&amp;gt;’Enter’ &amp;gt; &amp;nbsp;‘a’ &amp;gt; ‘Enter’&lt;/P&gt;&lt;P&gt;I'm don't even know where to start with creating this. I would like to run a script or whatever, so I don't have to recursively run those 4 commands for every 'part.'&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:05:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9284239#M115120</guid>
      <dc:creator>setiplex</dc:creator>
      <dc:date>2020-01-30T00:05:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9284247#M115121</link>
      <description>&lt;P&gt;Action Macro Recorder tested?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-1DA03958-D894-4FD4-BCA2-42C5517D2FE3" target="_blank"&gt;https://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-1DA03958-D894-4FD4-BCA2-42C5517D2FE3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9284247#M115121</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-01-30T00:10:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9286910#M115122</link>
      <description>&lt;P&gt;Is there any other way..like in a lisp. Mine crashes when running ACTMANGER. It's an old 2012.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 22:17:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9286910#M115122</guid>
      <dc:creator>setiplex</dc:creator>
      <dc:date>2020-01-30T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9286926#M115123</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7987691"&gt;@setiplex&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;Is there any other way..like in a lisp. Mine crashes when running ACTMANGER. It's an old 2012.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sure, Macro Script Lisp VBA .NET C++&lt;/P&gt;
&lt;P&gt;But i have no time to write that for you (and you can find a lot stuff in the forum what is near to what you need)&lt;/P&gt;
&lt;H2 class="board-title"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A id="link_29" class="lia-link-navigation lia-message-unread" href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="noopener"&gt;Visual LISP, AutoLISP and General Customization&lt;/A&gt;&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a search engine for +autocad +explode +pedit +purge&lt;/P&gt;
&lt;P&gt;This is one sample of the hits:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-explode-close-corners-overkill-purge-and-flatten-all/m-p/8388474#M376710" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-explode-close-corners-overkill-purge-and-flatten-all/m-p/8388474#M376710&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: To use EXPLODE in commands well, you need to start (initcommandversion) before / the smart way of multiple solutions for "explode all"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(initcommandversion)&lt;/P&gt;
&lt;P&gt;(command "_.EXPLODE" "_all" "") ;&amp;nbsp; destroys blockreferences, also MText and Polylines, Dimensions..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 22:29:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9286926#M115123</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-01-30T22:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9288680#M115124</link>
      <description>&lt;P&gt;Try putting this command macro into a Tool Palette button:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;^C^CExplode ALL -Overkill all ;;SELECT \Pedit m P ;j ;c ;-Purge a * n;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things needed tweaking [e.g. the hyphen prefixes on some command names, spelling out of ALL for the Explode selection, the * for all in the PURGE command] compared to the literal aspects of your description, so I hope it ends up doing what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SELECT command with &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; backslash for user input can take any amount of selections and selection options [unlike other commands involving object selection that would need separate User-input backslashes for each selection], then the PEDIT command uses the Previous selection established by that.&amp;nbsp; Spaces are just like spaces or enters at the command line; semicolons are Enters.&amp;nbsp; [Many people like to use semicolons for all; I prefer spaces except when there is more than one together, in which case with all spaces it's harder to "read" how many there are.]&amp;nbsp; The ^C^C at the front is a double cancel, to ensure you get out of any command that may be running when you pick the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the&amp;nbsp;&lt;SPAN&gt;(initcommandversion) business described by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;is needed only if you do the Exploding in an AutoLisp (command) function, which can Explode only one thing at a time unless you do that or use other ways to handle that limitation.&amp;nbsp; It is not needed in a direct command-line Explode command such as in a macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[You can shorten it by one character if you set the PEDITACCEPT System Variable to not ask whether you want to convert Lines and Arcs.]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 15:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9288680#M115124</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-01-31T15:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9288963#M115125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the&amp;nbsp;&lt;SPAN&gt;(initcommandversion) business described by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;is needed only if you do the Exploding in an AutoLisp (command) function, which can Explode only one thing at a time unless you do that or use other ways to handle that limitation.&amp;nbsp; It is not needed in a direct command-line Explode command such as in a macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That part is not correct, you have to&amp;nbsp; handle this limitation alwas by using EXPLODE inside automations,&lt;/P&gt;
&lt;P&gt;so you have to think about it in commands, sendcommands and also in Script or Menumacros!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For menumacros you have the equivalent in the special character for menumacros: ^R&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#999999"&gt;For LT-Scripts, where you can not use the ^R and no (initcommandversion), &lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#999999"&gt;you have to handle with undocumented variable qaflags(1).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 17:53:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9288963#M115125</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-01-31T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple commands at once.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9650614#M115126</link>
      <description>&lt;P&gt;Try the macros as attached for illustration&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 05:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-run-multiple-commands-at-once/m-p/9650614#M115126</guid>
      <dc:creator>maic_bigfoot</dc:creator>
      <dc:date>2020-07-23T05:12:07Z</dc:date>
    </item>
  </channel>
</rss>

