Inventor General Discussion

Reply
Valued Contributor
ninjajedisaiyan
Posts: 65
Registered: ‎04-28-2009
Message 1 of 6 (462 Views)
Accepted Solution

iLogic constraint suppression

462 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?

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 2 of 6 (448 Views)

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*
mrattray
Posts: 2,471
Registered: ‎09-13-2011
Message 3 of 6 (447 Views)

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
ninjajedisaiyan
Posts: 65
Registered: ‎04-28-2009
Message 4 of 6 (433 Views)

Re: iLogic constraint suppression

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

Ah I understand now. Thank you!

Valued Contributor
ninjajedisaiyan
Posts: 65
Registered: ‎04-28-2009
Message 5 of 6 (427 Views)

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*
mrattray
Posts: 2,471
Registered: ‎09-13-2011
Message 6 of 6 (414 Views)

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube