<?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: CUI - How do you select something in a pop up in your command script? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299639#M53707</link>
    <description>&lt;P&gt;This works for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^C^R-Layout;T;"acadISO -Named Plot Styles.dwt";"Layout1";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note missing the first semicolon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW Are you on LT that you are willing to fight with command macros.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2022 07:21:24 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2022-07-16T07:21:24Z</dc:date>
    <item>
      <title>CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299563#M53704</link>
      <description>&lt;P&gt;I made a command button in the CUI (LayoutDF) to add a layout using a template called "~~Default).&amp;nbsp;&lt;/P&gt;&lt;P&gt;the script is : ^C^C^R;Layout;T;~~default.dwt;^I^I^I;D;;;R;;&lt;/P&gt;&lt;P&gt;The idea is to add a layout, delete the Layout1, and rename the added layout.&lt;/P&gt;&lt;P&gt;The script works but don't want to have to click ok when the "Insert layout(s)" popup appears. I placed the tabs(^I) to try to get it to select the layout name but it still requires me to click ok. The only layout in the popup is called LAYOUT. How can I get it to select the layout and click ok, so that it moves to the next step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mechrover&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:04:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299563#M53704</guid>
      <dc:creator>mechrover</dc:creator>
      <dc:date>2022-07-15T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299600#M53705</link>
      <description>&lt;P&gt;I think you need to reset the FILEDIA system variable to zero. The most important thing is not to forget to turn it back on.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299600#M53705</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2022-07-15T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299627#M53706</link>
      <description>&lt;P&gt;Ok, how do I do that and can I reset it in my script and then change it back in there as well?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:37:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299627#M53706</guid>
      <dc:creator>mechrover</dc:creator>
      <dc:date>2022-07-15T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299639#M53707</link>
      <description>&lt;P&gt;This works for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^C^R-Layout;T;"acadISO -Named Plot Styles.dwt";"Layout1";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note missing the first semicolon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW Are you on LT that you are willing to fight with command macros.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 07:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299639#M53707</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-07-16T07:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299674#M53708</link>
      <description>&lt;P&gt;I'm not on LT&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11299674#M53708</guid>
      <dc:creator>mechrover</dc:creator>
      <dc:date>2022-07-15T13:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11300280#M53709</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;Menu Macro's are a simple and easy way to generate custom commands. Offcourse they also have their limits. why do you consider it a 'fight' to use them? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11089249"&gt;@mechrover&lt;/a&gt;&amp;nbsp;to follow&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2783534"&gt;@AVCPlugins&lt;/a&gt;&amp;nbsp; suggestion, just add filedia;0; at the beginning of your macro and filedia;1; at the end of your macro...&lt;BR /&gt;&lt;BR /&gt;^C^Cfiledia;0; ...&amp;lt;your macro here&amp;gt; ... filedia;1;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 19:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11300280#M53709</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2022-07-15T19:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: CUI - How do you select something in a pop up in your command script?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11300498#M53710</link>
      <description>&lt;P&gt;Hi Mechrover,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;"template called "~~Default"&lt;BR /&gt;Really a bad name for, but it is your choice to use such special characters.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;"the script is : ^C^C^R;Layout;T;~~default.dwt;^I^I^I;D;;;R;;"&lt;BR /&gt;This Script is to insert a Layout by selection from a Layoutlist (more clean: ^C^C^C^R_.Layout;_template;~~default.dwt)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;"How can I get it to select the layout and &lt;BR /&gt;click ok, so that it moves to the next step?"&lt;BR /&gt;You can't controle the dialogs by Menumacro.&lt;BR /&gt;You have to use another version of this command&lt;BR /&gt;Use command LAYOUT as you did, but do not add the ^R Control&lt;BR /&gt;or&lt;BR /&gt;use command -LAYOUT&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;"The idea is to add a layout, delete the Layout1, and rename the added layout."&lt;/P&gt;
&lt;P&gt;^C^C^C_.Layout;_template;~~default.dwt;Layout;;_delete;LAYOUT1;;_set;LAYOUT;;_rename;LAYOUT&lt;BR /&gt;or&lt;BR /&gt;^C^C^C^R_.-Layout;_template;~~default.dwt;Layout;;_delete;LAYOUT1;;_set;LAYOUT;;_rename;LAYOUT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;gt;&amp;gt;"I think you need to reset the FILEDIA system variable to zero. The most important thing is not to forget to turn it back on."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;"suggestion, just add filedia;0; at the beginning of your macro and filedia;1; at the end of your macro..."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 99.9% it doesn't make sense to set filedia in a Script, because well programmed commands uses the commandlineversion (like filedia is 0) default in automations.&lt;/P&gt;
&lt;P&gt;As you can see in this macro: No filedia implemented, but the command don't open the standard filedialog to ask for a template file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And in this case here(command Layout) the dialog is another one, filedia is for the standard file-dialog &lt;STRONG&gt;only&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 22:40:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cui-how-do-you-select-something-in-a-pop-up-in-your-command/m-p/11300498#M53710</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-07-15T22:40:59Z</dc:date>
    </item>
  </channel>
</rss>

