ilogic and composite imate suppress issue

ilogic and composite imate suppress issue

jletcher
Advisor Advisor
928 Views
1 Reply
Message 1 of 2

ilogic and composite imate suppress issue

jletcher
Advisor
Advisor

I have an issue with this not sure what because it works one way but not back...

 

 I have two composite constraints on the same part one gets suppressed when option is true and changes to the other if false.

 

True puts sprocket in center (iComposite:6) false moves sprocket to iComposite:5 or it should but error.

 

 It works one way but not the other way. If I pick true it works if I pick false it fails..

 

 Any idea?

 

 Here is code and error.

 

If Sprocket_Center = True Then
	Parameter("Master Drive:1", "Sprocket_Center") = True
	Constraint.IsActive("iComposite:5") = False
	Constraint.IsActive("iComposite:6") = True

Else
	Parameter("Master Drive:1", "Sprocket_Center") = False
	Constraint.IsActive("iComposite:5") = True
	Constraint.IsActive("iComposite:6") = False
End If

 E1.JPG

 

E2.JPG

 

 

  Thanks For your help..

 

 

0 Likes
Accepted solutions (1)
929 Views
1 Reply
Reply (1)
Message 2 of 2

jletcher
Advisor
Advisor
Accepted solution

 

 

  Ok I figured it out I had to change the Else part

 

 I had to move line with iComposite:5 below iComposite:6

 

 Now it works Smiley Surprised