@milan5 Google is the most powerful tool of the 21st century, and if you use proper keywords, you can usually find answers to your questions.
For Example, if I google "Autodesk Inventor + iLogic + how to use rule"
the first link that pops up is quite valuable. As is the 2nd link, and so on and so forth.
There are also tutorials done by Autodesk on the topic.
However, noted below is also pretty much the exact same steps that
Step 1: Identify if code is VB or VBA:
- There are no variable assignment lines that begin with "set", so we can guess this is likely vb.net - which is used in the rule environment.
Step 2: Enable the iLogic browser.
- In the ribbon bar: Tools > Addins. Ensure iLogic is set to load automatically, and is loaded.
- Also in the ribbon bar (while you have a document open:): View > User Interface. Ensure iLogic Browser is checked
Step 3:
- Copy the code from the forums.
Step 4:
- In the iLogic Browser, go to the external rules tab.
- Right click the "Standard Directories"
- Click "Create New External Rule"
- Establish the file name
- Paste the copied code from the forums into the rule editor window that pops up.
- Click Save
- Close the rule dialog
Step 5:
- Right click the rule name in the iLogic browser
- Click "Run Rule"
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.