Hello,
Is there any command/option to add a keyboard shortcut for ilogic rule ?
Thanks
Solved! Go to Solution.
Solved by MjDeck. Go to Solution.
Is ti strange that in macros category i dont have nothing.....
How can i enter a Key in a column at macro category??
Did you put all your VBA code into your ApplicationProject?
It must be in the ApplicationProject, instead of in the document.
I forgot to tell you tha i am amatuer at Autodesk Inventor...
How can i put all VBA code into my ApplicationProject
Here is a screenshot of the VBA Editor. The ApplicationProject is at the top left. Copy and paste your code from where you have it now (maybe in Module1 of the DocumentProject) into Module1 of the ApplicationProject.
Ok Mike i think i done it....I will try a liitle bit by myself because i feel that i tired you, and if i have another question i will be back.....
I realy thank you and appriciate all your help.....
OK, great. I forgot one thing: you should set an option so that the VBA macros are available all the time.
Under Application Options
Check the Load VBA on start-up option
Finally i enter a shortcut Key on a macro as you say...
But how it can be activated???I mean when i can press the button "A" for example, and run my macro???
I must do somethimg else???It's about this setting you send me???
You don't need the Load VBA on start-up option in Inventor 2011. But it is required in Inventor 2013 (and maybe 2012).
If your macro is not working, I don't know what the problem might be. I would recommend using two letters instead of one for your shortcut. Please send me a screenshot similar to the one below:
Mike i find the problem....
In any Key, at "A" for example, there are some default Scortcuts....So when i press "A", i have 2 choises.First is the Analyze Interference and second is my option...I can choose any of 2 and pressing enter to activate.If at some key, there is not an default schortcut, when i pressing i have instantly the desired result...
So, you fixed my problem...
I realy thank you.I dont have words.....After the solution of this problem, i finish my graduate work.
Really THANK you man....
The code that I posted before will run an external rule. It's attached again here.
iLogic will find external rule files in the directory of the current document and in the workspace directory. You can add other directories to search using Tools > Options > iLogic Configuration
This code works perfect 🙂 Thanks so much . I don't really have programming skills, but I think the code to launch a global form could be easely added to the same script? Now have to launch this form from the ilogic browser for every part I make so there is a big timesaver in it for me.
Thanks again.
Joris
Hi Mike,
What would one need to modify in this VB code to call up an external rule?
Thanks,
Ben
Inventor 2016 R2
To be clear, the attached code is the one I was referring to (the first one you posted.)
This works great to call up a rule calling up a form in my local doc, but not for global rule.
Thanks,
Ben
Hi Ben,
Please look at post 53 in this thread. You should be able to use the file RunExternalRule-ivb.txt that is attached to post 53. Edit it and substitute the name of your external rule. The rule file must be in a directory that you have added to the list of External Rule Directories in the iLogic Configuration dialog.
This VBA was working but, finally get some error report,
please solve this issue , i have tried to run external rule
I can confirm that this solution still works for external rules in Inventor 2022.
See below a summary of all edits to follow:
That's all.
You can now use the shortcut you created to run the ilogicrule you provided.
Can't find what you're looking for? Ask the community or share your knowledge.