By Clint Brown
Following on from my blog Inventor 2016 - iLogic - Create Custom iProperty on the fly. I thought I would share a method for creating Parameters on the fly.
I've written 2 sets of code, one creates a parameter based on an Integer (mm) and the second based on a String, or text parameter. Both sets of code are designed to run on part files only.
The code allows you to create a Custom Parameter and give it a value on the fly.
The 2 different sets of code are attached to this blog post as a txt file.
The animated GIF below shows the code in action, in this instance the millimeter or Integer code (Click to Zoom)
Some Kudos must go to Luke Davenport for his blog Exit Rule Based on File Type which I borrowed a bit of code from for this.