When I heard about Inventor 2013’s ability to add custom parameters of both text and Boolean types I immediately thought it was a nice enhancement though I couldn’t really see a need to have something like an emboss show “True” or “False” in a part, but there may be a use for Boolean parameters in text that you’ll find and I’m overlooking. The next thought was there had to be a use for a Boolean with the text mixed with a little iLogic.
Here’s a very simple example of using a user text parameter and a Boolean parameter and put them to good use (and add the parameters to a part sketch without getting the “There is no parameter under this source” warning from previous versions)...
The first part is nothing new, just a matter of adding the parameters:
Sadly, you can’t send these parameters to a custom iProperty at this point as you can with a numeric parameter by checking on the export parameter box, right clicking and using the custom property format (as in d4 pictured below):
But what a delight to not see the warning when inserting the parameter by selecting the source as user parameters:
Now I can emboss and, voila, it’ll change when I change the parameter - immediately. The possibilities are starting to increase.
Now the only things left to do are 1) use iLogic to automatically control its visibility (incorporate the Boolean created) and; 2) since I’m already in VB, send the custom parameter to a custom iProperty – after first setting it to a null value so no warnings pop up the first time you run the rule. Why not as long as I’m already there, right? Now the catch here is I can set a string (text) value to null in VB or iLogic, but I don’t know how or if it’s even possible to set a Boolean value to null – just True or False to the best of my knowledge. But we can still use the Boolean to control whether or not the text value is visible with just a few simple lines:
And, now control the visibility of the emboss with that rule and the Boolean parameter:
I hope this helps you find more creative and complex ways to use this new functionality!
-Daren



Subscribe