<?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 Place assembly and display its form in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10969478#M134963</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a program that will add my assembly from a defined location and after placing it (this is working in my code), it will show me the form of newly added assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it's possible but it will be great if program will stop after this line:&lt;/P&gt;&lt;PRE&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;"AssemblyPlaceComponentCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;	&lt;/PRE&gt;&lt;P&gt;and after user will place it, form ("FORM1") will popup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"\"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;"D:\3_TEST\ACCESSDOOR\CUSTOM.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Project Number"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;"000"&lt;/SPAN&gt;)
&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"-ASSEMBLY-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".iam"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt; &lt;SPAN&gt;'loop through all part in assembly	&lt;/SPAN&gt;

	&lt;SPAN&gt;TAG_NO&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"TAG"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;"001"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"item-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;TAG_NO&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".ipt"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Matrix&lt;/SPAN&gt;
&lt;SPAN&gt;oMatrix&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt;.&lt;SPAN&gt;SetTranslation&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreateVector&lt;/SPAN&gt;(50, 50, 50), &lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;PostPrivateEvent&lt;/SPAN&gt;(&lt;SPAN&gt;PrivateEventTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFileNameEvent&lt;/SPAN&gt;, &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&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;"AssemblyPlaceComponentCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;	

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;Trace&lt;/SPAN&gt;.&lt;SPAN&gt;Write&lt;/SPAN&gt;(&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;)
&lt;SPAN&gt;iLogicForm&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"FORM1"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 11:18:51 GMT</pubDate>
    <dc:creator>Damian_Apex</dc:creator>
    <dc:date>2022-02-24T11:18:51Z</dc:date>
    <item>
      <title>Place assembly and display its form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10969478#M134963</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a program that will add my assembly from a defined location and after placing it (this is working in my code), it will show me the form of newly added assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it's possible but it will be great if program will stop after this line:&lt;/P&gt;&lt;PRE&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;"AssemblyPlaceComponentCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;	&lt;/PRE&gt;&lt;P&gt;and after user will place it, form ("FORM1") will popup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"\"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;"D:\3_TEST\ACCESSDOOR\CUSTOM.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Project Number"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;"000"&lt;/SPAN&gt;)
&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"-ASSEMBLY-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".iam"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt; &lt;SPAN&gt;'loop through all part in assembly	&lt;/SPAN&gt;

	&lt;SPAN&gt;TAG_NO&lt;/SPAN&gt; = &lt;SPAN&gt;InputBox&lt;/SPAN&gt;(&lt;SPAN&gt;"TAG"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;"001"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;ProjectNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"item-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;TAG_NO&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".ipt"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Matrix&lt;/SPAN&gt;
&lt;SPAN&gt;oMatrix&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt;.&lt;SPAN&gt;SetTranslation&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreateVector&lt;/SPAN&gt;(50, 50, 50), &lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;PostPrivateEvent&lt;/SPAN&gt;(&lt;SPAN&gt;PrivateEventTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFileNameEvent&lt;/SPAN&gt;, &lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&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;"AssemblyPlaceComponentCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;	

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;Trace&lt;/SPAN&gt;.&lt;SPAN&gt;Write&lt;/SPAN&gt;(&lt;SPAN&gt;AssyDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt;)
&lt;SPAN&gt;iLogicForm&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"FORM1"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 11:18:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10969478#M134963</guid>
      <dc:creator>Damian_Apex</dc:creator>
      <dc:date>2022-02-24T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly and display its form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10969720#M134965</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9159678"&gt;@Damian_Apex&lt;/a&gt;.&amp;nbsp; The problem with that '&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=8b7cffcf-8379-2ed2-d40f-38f446d5fa36" target="_blank" rel="noopener"&gt;iLogicForm.Show("Form1")&lt;/A&gt;' iLogic snippet, is that there appears to be no documentation about which document it is designed to target by default, and apparently no way to tell it to target a specific document.&amp;nbsp; So, in an assembly scenario, where there are multiple documents open, and/or from an external iLogic rule, this confusion can be even more prevalent.&lt;/P&gt;
&lt;P&gt;Here is a bit of exploratory code I created at some point that checks which iLogic Forms are available using those snippets:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oLocalFormNames = iLogicForm.FormNames
If oLocalFormNames.Count = 0 Then
	MsgBox("There were no 'Local' iLogic Forms.", , "")
Else
	a = InputListBox("", oLocalFormNames,"", "Local Form Names")
End If
Dim oGlobalFormNames = iLogicForm.GlobalFormNames
If oGlobalFormNames.Count = 0 Then
	MsgBox("There were no 'Global' iLogic Forms.", , "")
Else
	b = InputListBox("", oGlobalFormNames,"", "Global Form Names")
End If&lt;/LI-CODE&gt;
&lt;P&gt;There is something I saw recently that might be able to help here though if your version of Inventor is new enough.&amp;nbsp; It makes use of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=0437e51f-f2bd-bb7d-fc2f-9faca72ecd2f" target="_blank" rel="noopener"&gt;StandardObjectFactory.Create() method&lt;/A&gt; (only available within iLogic).&amp;nbsp; This allows you to specify a Document object, and can use the resulting &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=1edcd6a4-f9bb-3553-e8d8-0f3da13dc8a6" target="_blank" rel="noopener"&gt;IStandardObjectProvider&lt;/A&gt; to initiate most other iLogic only tools, one of which is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=8c1bfda5-c37c-0bfa-a7ad-e4933efa2bfa" target="_blank" rel="noopener"&gt;iLogicForm&lt;/A&gt;.&amp;nbsp; My understanding is that if you access the iLogicForm object from that IStandardObjectProvider object you created, it will target the document you specified when you created it.&amp;nbsp; Using it would look something like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oTargetDocument As Document = ThisApplication.Documents.ItemByName("C:\Temp\MyAssembly.iam")
SOP = StandardObjectFactory.Create(oTargetDocument)
SOP.iLogicForm.Show("Form1")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;/A&gt; :bulb: or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 13:18:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10969720#M134965</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-02-24T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly and display its form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10971243#M134981</link>
      <description>&lt;P&gt;Thank you, the second part is really helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible to stop program while the item is placed ?&amp;nbsp;&lt;/P&gt;&lt;PRE&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;"AssemblyPlaceComponentCmd"&lt;/SPAN&gt;).&lt;SPAN&gt;Execute&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 06:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10971243#M134981</guid>
      <dc:creator>Damian_Apex</dc:creator>
      <dc:date>2022-02-25T06:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly and display its form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10972121#M135001</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9159678"&gt;@Damian_Apex&lt;/a&gt;.&amp;nbsp; Of the two different Execute methods (&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-96D70A8A-8FA1-4D76-AC73-7A45AB547808" target="_blank" rel="noopener"&gt;Execute&lt;/A&gt; &amp;amp; &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-1715970A-16DF-43E9-9C6D-2ED3336C5420" target="_blank" rel="noopener"&gt;Execute2&lt;/A&gt;), Execute2 offers more control (synchronous or asynchronous execution).&amp;nbsp; But I doubt either option will help here.&amp;nbsp; There is not a really good option in simple iLogic terms to make it intelligently wait for you to be done with placing the component, before resuming.&amp;nbsp; There are some general vb.net methods out there (&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.waitforexit?redirectedfrom=MSDN&amp;amp;view=net-6.0#overloads" target="_blank" rel="noopener"&gt;Process.WaitForExit&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.wait?view=net-6.0" target="_blank" rel="noopener"&gt;Task.Wait&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.sleep?view=net-6.0#system-threading-thread-sleep(system-int32)" target="_blank" rel="noopener"&gt;Thread.Sleep&lt;/A&gt;, etc.), but I don't know of a specific one that would work in this situation as you are wanting it to (without a ton of extra code).&amp;nbsp; Why don't you just use one of the normal API methods (such as the ones defined under the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-729F272D-821C-4DFF-B604-8C89035D6D88" target="_blank" rel="noopener"&gt;ComponentOccurrences&lt;/A&gt; object) to add the component to the assembly, instead of executing the command for the manual process?&amp;nbsp; That would eliminate the need to pause the code.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 15:26:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-and-display-its-form/m-p/10972121#M135001</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-02-25T15:26:45Z</dc:date>
    </item>
  </channel>
</rss>

