Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic and composite imate suppress issue

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jletcher
838 Views, 1 Reply

ilogic and composite imate suppress issue

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..

 

 

1 REPLY 1
Message 2 of 2
jletcher
in reply to: jletcher

 

 

  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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report