First I will say I am a complete iLogic newbie just trying to experiment so I'm probably missing something basic but I have tried to reasearch and can't come up with a solution. Anyway...
What I am trying to do is make this assembly (see pic attached) telescope based on a constraint (END2END) between the left-most face of the green part and the right-most face of the red part. I want the green part to only telescope out once the blue part has reached the end of it's stroke. My thought was to constrain the end of the green and blue parts flush until the END2END distance was greater than 42, after which the flush constraint would be suppressed.
My rule currently states:
If END2END<(-42) Then Constraint.IsActive("Flush:2")=False Else Constraint.IsActive("Flush:2")=True End If
However when I change the END2END to constraint to -43 my assembly breaks because the Flush:2 doesn't suppress.
What am I doing wrong?
Solved! Go to Solution.
I did not test but change the constraint to be a positive number -43 is not greater than 42..
END2END is the name of your constraint, you need to use the name of the parameter that defines the constraint.
1)Edit the END2END constraint
2)Change the value to END2END = 43
3)Edit the iLogicRule
4)Notice the color of the text for END2END change from brown to blue
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.