Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: Damian_Apex

Hi @Damian_Apex.  Of the two different Execute methods (Execute & Execute2), Execute2 offers more control (synchronous or asynchronous execution).  But I doubt either option will help here.  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.  There are some general vb.net methods out there (Process.WaitForExit, Task.Wait, Thread.Sleep, 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).  Why don't you just use one of the normal API methods (such as the ones defined under the ComponentOccurrences object) to add the component to the assembly, instead of executing the command for the manual process?  That would eliminate the need to pause the code.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)