We all want to be more efficient, which often means automating some repetitive tasks. Using iLogic in Autodesk Inventor® is a great way to create tools to help with this.
To get the most out of your efforts, you want to reuse as much of code as possible. If something works well, recycle that code and reduce the time needed to create that new project.
The Autodesk Inventor iLogic rule editor has a large amount of code and functions available to you on the System tab:
These are excellent for most of the code you need to create.
The Custom tab lets you store the code you have created and quickly find it to reuse. Think of it as your personal code library.
How do you use it? That’s the easy part.
IF you have code you want to store as a "Custom Snippet," follow these steps:
- In the rule editor, select the text to capture—right-click and select "Capture Snippet" from the context menu.
- Fill in the "Edit Snippet" dialog. Provide your snippet a title, determine which folder to store your snippet. You can even provide a tooltip for your snippet.
- Click “OK” to save your snippet.
- The snippet is now stored for you to reuse whenever it is needed.