iLogic Tutorial From Autodesk – 02

Create iLogic Parameters

Open the iLogic Parameters Editor, using the iLogic Parameters button on the Parameters panel of the Manage tab (below the regular Inventor Parameters button).

Most of the parameters have been named in the parameter editor already. It is good practice to name your parameters for future reference when creating a parametric design. Parameters with meaningful names make the rules that drive or reference them easier to read and understand.

Keep in mind that parameter names in iLogic are case sensitive. Please be sure to follow the case being used in the parameter editor, and while creating rules.

Create Port Size Parameters

First, we need a set of parameters to control the size of 3 ports on our manifold block.

To begin, create a new iLogic parameter named “port_a_size”. Set its Unit value to “in”. Give it an initial equation of “0.50”. Make it a multi-value list, with the values:

0.50
0.75
1.00
1.25
1.50
2.00
2.50
3.00

If you need more details on the exact steps needed to create a new iLogic parameter, please revisit the Basic Tutorial. It covers these steps in greater detail. Remember that you can cut and paste the values above to set the values for the multi-value list.

Finally, make port_a_size a key parameter.

Create two more parameters, named port_b_size and port_c_size with the same settings and multi-value lists. Set both of these as Key parameters. You should now have the following key parameters:

Creating iLogic Parameters

Creating Block and Component Type iLogic Parameters

Now, we need to create two more iLogic parameters, which will control whether we are modeling a “tee” block or an “elbow” block, and also whether we are creating a standard or a custom block.

First, create a new parameter named “block”. Make this be a String type parameter. Make it a multi-value parameter, with the values:

tee
elbow

Set the current value to be “tee”, and make this a key iLogic parameter.

Create a second iLogic parameter, named “component_type”. Make this a String parameter also, and make it a multi-value parameter, with the values:

standard
custom

Set the current value to be “standard”, and make this a key parameter. Now, you should have the following key parameters:

iLogic Parameters Editor

Click Done at this point to exit the iLogic Parameter Editor.This would be a good time to save your document, before we move on to creating rules…

iLogic Introduction Tutorial Links

Intro12345678910

 

 

iLogic Intro Two

Subscribe to Blog via Email

Top