Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
66 Posts
3 Kudos
Registered: ‎04-28-2009
Post 1 of 6
Accepted Solution

iLogic constraint suppression

560 Views, 5 Replies
06-06-2012 11:53 AM

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?

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

5)Click OK

 

Problem solved.

*Pro
1,986 Posts
404 Kudos
Registered: ‎05-18-2011
Post 2 of 6

Re: iLogic constraint suppression

06-06-2012 12:01 PM in reply to: ninjajedisaiyan

I did not test but change the constraint to be a positive number -43 is not greater than 42..


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
*Expert Elite*
2,546 Posts
890 Kudos
Registered: ‎09-13-2011
Post 3 of 6

Re: iLogic constraint suppression

06-06-2012 12:01 PM in reply to: ninjajedisaiyan

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

5)Click OK

 

Problem solved.

Mike (not Matt) Rattray

Valued Contributor
66 Posts
3 Kudos
Registered: ‎04-28-2009
Post 4 of 6

Re: iLogic constraint suppression

06-06-2012 12:08 PM in reply to: mrattray

Ah I understand now. Thank you!

Valued Contributor
66 Posts
3 Kudos
Registered: ‎04-28-2009
Post 5 of 6

Re: iLogic constraint suppression

06-06-2012 12:18 PM in reply to: jletcher

I meant

 

"until the END2END distance was greater than |42|" or "greater than 42 in the negative direction"

 

*Expert Elite*
2,546 Posts
890 Kudos
Registered: ‎09-13-2011
Post 6 of 6

Re: iLogic constraint suppression

06-07-2012 05:07 AM in reply to: ninjajedisaiyan

How you have it should be fine but, just for academia's sake, you could aslo use:

END2END > Abs(42)

Mike (not Matt) Rattray

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!