Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Close iLogic Form

4 REPLIES 4
Reply
Message 1 of 5
ccoomes
1361 Views, 4 Replies

Close iLogic Form

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.

4 REPLIES 4
Message 2 of 5
skyngu
in reply to: ccoomes

one question, how can you open ilogic form?

Autodesk Inventor Professional 2019
Message 3 of 5
ccoomes
in reply to: skyngu

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...

Message 4 of 5
MegaJerk
in reply to: skyngu

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. 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
Message 5 of 5
Vladimir.Ananyev
in reply to: ccoomes

In this version there is no API call to close form.

Sorry Smiley Sad


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report