CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 3969 

CAD tip CAD tip # 9630:

Question CAD 
 %  platform  category 
Q - question

Inventor trick - conditional parameters (without iLogic)

A - answer Even without iLogic you can use a math trick in Inventor to set a parameter value based on a logical condition, depending on the value of another parameter.

Strictly speaking it is not about a logical condition, but rather about testing of divisibility by two, using the standard arithmetic operator modulo (%):

The expression:


returns 1 for odd values of v

and the expression:


returns 1 for even values of the parameter v.

By combining these two expressions you can form a "logical" conditional statement, which evaluates to H1 for odd values of v and to H2 for even values of v:


Analogically you can extend this method also for other values but the resulting expression may get complicated fast.

100% *  CAD 
8.1.2014    3408x  
Comments   Tell a friend
applies to: Inventor ·

See also:
Tip 10889:How to get user's full domain name, phone No., department, e-mail...
Tip 10790:Long text is not wrapped automatically to 2 lines in my title block.
Tip 10721:How to draw a catenary or other parametric curve in Inventor?
Tip 10719:How to add the unfold rule name as a drawing note?
Tip 10161:Automatic checking of design limits in Inventor.

Back   All CAD Tips All CAD tips&tricks

Views, sections and details from Inventor 3D models generated in AutoCAD. « | » Installation aborted, Result=1618

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.