I have attached a simplified version of a complex iAssembly I'm working on. I'm expermenting with using iLogic rules to control an assembly instead of strictly spreadsheets. The assembly (the simple one) is four cylinders stacked end to end. It consists of two members, one with all four cylinders and one with three of the cylinders. There is a parameter driven mate that should toggle on via an iLogic rule when the third cylinder in the stack becomes surpressed, and vice versa, which keeps the fourth cylinder stacked properly.
The problem is, it doesn't work! It turns the constraint off when it's supposed to, but it won't turn it back on when it's supposed to. What am I doing wrong here?
Thanks in advance,
Mike
Hi, Mike
From you attached assembly, i saw you set the third component as "Exclude", but it should be "Suppress" as your iLogic rule.
and i tried to suppress/Unsuppress the third component, your rule works well
Thanks
Mick
After reading your post I played with it some more. I found one of the mates was throwing an error so I changed the code to read as follows:
Format:HTML Format
Version:1.0
StartHTML: 165
EndHTML: 4660
StartFragment: 314
EndFragment: 4628
StartSelection: 314
EndSelection: 314
IfComponent.IsActive("MN-SL-0922-0500:1")=TrueThen
Constraint.IsActive("offset")=False
Constraint.IsActive("Mate:6")=True
ElseIfComponent.IsActive("MN-SL-0922-0500:1")=FalseThen
Constraint.IsActive("offset")=True
Constraint.IsActive("Mate:6")=False
EndIf
Now suppress/unsuppress works fine. But that's not what I want. My complex assembly that I'm trying to make this work with is a part factory with 44 members and I want the mates to change as I include/exclude components and change pattern parameters.
I suppose that I'll admit that I'm not really sure what the difference is between suppress/unsuppress and exclude/include.
Mike, what version of inventor are you using?
ok, well sorry i dont have 2012...............good luck!