<?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: AssemblyHalfSectionViewCmd - how to carry out via ilogic? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11592603#M145937</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"AppContextual_DoneCmd" worked perfectly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 07:21:16 GMT</pubDate>
    <dc:creator>jpi656UL</dc:creator>
    <dc:date>2022-12-02T07:21:16Z</dc:date>
    <item>
      <title>AssemblyHalfSectionViewCmd - how to carry out via ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11590914#M145908</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking for an information to automate section view for the assembly and to be honest I stuck here:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;SelectSet&lt;/SPAN&gt;.&lt;SPAN&gt;Select&lt;/SPAN&gt;(&lt;SPAN&gt;assm&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;WorkPlanes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"XY Plane"&lt;/SPAN&gt;))
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"AssemblyHalfSectionViewCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;now the window pops up and I need to hit&amp;nbsp; ok button:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpi656UL_0-1669906891071.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1146985i97D3E5E3C1F31DEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpi656UL_0-1669906891071.png" alt="jpi656UL_0-1669906891071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found some information to use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SendKeys &lt;/PRE&gt;&lt;P&gt;to close the window resulting with execution but&amp;nbsp;apparently it is no longer supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this? Isn't it possible any longer?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11590914#M145908</guid>
      <dc:creator>jpi656UL</dc:creator>
      <dc:date>2022-12-01T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: AssemblyHalfSectionViewCmd - how to carry out via ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11591056#M145920</link>
      <description>&lt;P&gt;It is still supported see &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send?view=windowsdesktop-7.0" target="_blank" rel="noopener"&gt;send key string&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;SendKeys.SendWait("ENTER")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It is a little tricky to control these commands as you are effectively sending the inputs after the dialogue has opened so it can get mixed results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11591056#M145920</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-12-01T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: AssemblyHalfSectionViewCmd - how to carry out via ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11591234#M145922</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11025029"&gt;@jpi656UL&lt;/a&gt;.&amp;nbsp; Also when using SendKeys, you have to make sure that the dialog you want to send the keystrokes to has 'system focus' when they are 'sent out', because the keystrokes could get sent to the wrong place, which is why it is dangerous.&amp;nbsp; I often precede the SendKeys line with AppActivate(ThisApplication.Caption), but even that if fairly vague.&amp;nbsp; There is also a more advanced vb.net function usually called "SetForegroundWindow" that you could use there, if you were proficient in your vb.net.&amp;nbsp; Then use "&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;DoEvents" on the line after calling SendKeys, to force it to be processed right then.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, you might be able to skip using the SendKeys altogether, and execute another command.&amp;nbsp; There are several that sound about right, such as "AppContextual_DoneCmd", "AppContextual_ApplyCmd", "AppContextual_OKCmd", "AppContextual_ContinueCmd", "AppContinueCmd", "Continue", "Done",&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 17:15:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11591234#M145922</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-12-01T17:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: AssemblyHalfSectionViewCmd - how to carry out via ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11592603#M145937</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"AppContextual_DoneCmd" worked perfectly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 07:21:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemblyhalfsectionviewcmd-how-to-carry-out-via-ilogic/m-p/11592603#M145937</guid>
      <dc:creator>jpi656UL</dc:creator>
      <dc:date>2022-12-02T07:21:16Z</dc:date>
    </item>
  </channel>
</rss>

