Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Maxim-CADman77
337 Views, 4 Replies

Conditional control of the assembly component presence with iLogic

I'd like to know how to control (place/delete) assembly component by means of iLogic.

Let's take standard scissors.iam (see attached, saved with Inventor 2022.5) as a simplest sample.

I've added 'Spring_Exist' parameter (Boolean).

 

What would be the minimal iLogic-rule code to add/remove Scissors_spring component based on the value of my parameter?

 

PS:
I don't interested in old-school methods (like switching Visibility On/Off, Enabled/Disabled, Suppress/Unsuppress).

PPS:
I do see the relevant sample BrewMain-Drawing-ModelState.zip at https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/3gnm93P9sPAWE6vndk7fjq.html but I'd like a simpler one.

Please vote for Inventor-Idea Text Search within Option Names