Sorry if this has been answered, but I cannot find the topic.
Could someone please tell me how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule?
Can you please give me the full code text required to close a form called "Mr Form" it would be greatly apprecitated.
Many Thanks.
I have managed to do it, but I use a piece of Macro Code (I found on this forum, but I cannot remember the authors name, sorry) that runs an external iLogic Rule from VBA that opens the from through another iLogic Rule.
It works quite well as I could not figure out how to open the forms through VBA either.
You can either run the VBA code from a Button on the Ribbon / Quick Access or you can create an iLogic Rule that runs the VBA Code that inturn runs the External iLogic Rule.
No doubt there is a much simpler way to open a Form from VBA code, but this works for me.
I can post the VBA code if you would like me too?
I still need to find the code to Close an iLogic Form from VBA though...
The iLogic code to show a form (Inventor 2012 and up) is simply
iLogicForm.Show("Form 1")
Where "Form 1" is the name of your form.
In this version there is no API call to close form.
Sorry