Shortcut to open iLogic form

Shortcut to open iLogic form

Anonymous
Not applicable
4,100 Views
6 Replies
Message 1 of 7

Shortcut to open iLogic form

Anonymous
Not applicable

Hi,

 

I am trying to create a shortcut to open an ilogic form to avoid me having to use the tabs on the menus, either via keyboard or marking menu (rmb).

 

I hope someone can help as i'm struggling to find a solution at the moment.

 

Thanks

 

Adam

0 Likes
Accepted solutions (2)
4,101 Views
6 Replies
Replies (6)
Message 2 of 7

mcgyvr
Consultant
Consultant
Accepted solution

A few different ways that I know of..

#1-Write a Vba Macro to trigger a rule that shows the form.. Creating a hotkey for that macro (I believe there are some limitations to that)

#2-Create an ilogic rule to show the form and simply setting that to fire on the "before save" event trigger or something like so that you just need to do the hotkey for save and the rule would fire and open the form and then save right after.. 

https://www.cadlinecommunity.co.uk/hc/en-us/articles/115000859309-Inventor-Run-iLogic-Rules-from-you...

https://www.youtube.com/watch?v=eQC4qUU2a00



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 7

Anonymous
Not applicable
Accepted solution

The easiest way is to use an iTrigger, although they are not always very reliable!

@ClintBrown3D Autodesk Inventor 453.png

This code should work, you may need to run it, then edit a parameters, edit the rule again, and it should fire from the iTrigger button. 

trigger = iTrigger0
iLogicForm.Show("Form 1")

 Once you get the iTrigger working, you can assign a shortcut to the iTrigger command

Message 4 of 7

JanekPop
Enthusiast
Enthusiast

Do these solutions assume that the iLogic form is already present in the file (the iLogic browser Forms tab not the Global Forms tab)?  With the iTrigger0 involved I am assuming so...

 

When I open an old part file (i.e. created with an old template), I run an external rule without the 'trigger = iTrigger0' line to show my form, yet it comes up with an error saying that the form cannot be found, even though I have the form saved in the Global Forms folder.

 

Janek

 

0 Likes
Message 5 of 7

SharkDesign
Mentor
Mentor

ilogicform.show will only show document forms, you need to use:

 

 

iLogicForm.ShowGlobal

 

 

  Inventor Certified Professional
Message 6 of 7

JanekPop
Enthusiast
Enthusiast

Thank you.

0 Likes
Message 7 of 7

rhasell
Advisor
Advisor

Hi

 

Have you tried Button Constructor. Place a button for the form on the ribbon.

You can the add the form to the right click menu.

https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=2268703737300536294&appLang=en&os=Win64 

 

 

Reg
2026.1