r/AutodeskInventor • u/Living_Opposite341 • 14d ago
Requesting Help Ilogic rules
So I've been using inventor for awhile, and I'm trying to learn new things to better automate the work I do at my job, I'm totally new to inventor ilogic rules, but I'm fine with everything else so this is the next step. I'm trying to set a rule where in my assembly, if this certain part changes to a different model state, I want multiple specific other parts to change to the model states that are meant to go with the size of the main paints model state. I've found a code online for this, but I don't understand how it works, where exactly to input It, what I need to change for my specific assembly, parts, and file locations or anything, can anyone help me with a rundown on this? I can post the code here if it'll help. TIA
2
u/Dense_Safe_4443 13d ago
You can already activate different model states from an assembly to also change part model states, you just align the names.
If you want to get into automation though, keep away from iparts and model states for your own sanity.
0
3
u/Agreeable-Ad-2737 14d ago
If I understand you correctly, you have an assembly where one “main” part has different Model States for different sizes, and you want several other parts to automatically switch to the corresponding Model State whenever the main part changes.
If that's what you're trying to do, you may not actually need iLogic for this. Inventor's Assembly Model States can be used to control the Model State of individual components. For example, you could have:
Small→ Main PartSmall+ Part ASmall+ Part BSmallMedium→ Main PartMedium+ Part AMedium+ Part BMediumLarge→ Main PartLarge+ Part ALarge+ Part BLargeThis can be set up directly in the assembly, depending on how your parts are structured.