set a part height to 0 when the part is suppressed

set a part height to 0 when the part is suppressed

Anonymous
Not applicable
349 Views
2 Replies
Message 1 of 3

set a part height to 0 when the part is suppressed

Anonymous
Not applicable

anyone know how to make the cone sit on top of a riser with no gap?

in the screenshot below, the cone is sitting at about 5 ft above the top riser, because the way it is constrained. 

if I was able to set the suppressed riser heights to 0 (in this case riser 4 and 5 are suppressed), then this issue would be resolved.

 

any ideas?

 

 

1.PNG

 

 

 

Constrain parameter

 

2.PNG

0 Likes
350 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant

Hi Chhogori,

 

I think I would do this by suppressing constraints:

 

If RiserCount = 2 Then
	Component.IsActive("Lego Brick 2x2:2") = True
	Constraint.IsActive("Mate:2") = True
	Constraint.IsActive("Mate:3") = False
ElseIf RiserCount = 1 Then
	Component.IsActive("Lego Brick 2x2:2") = False
	Constraint.IsActive("Mate:2") = False
	Constraint.IsActive("Mate:3") = True
End If

 

Lego2.PNGLego 1.PNG

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

Message 3 of 3

Anonymous
Not applicable

Curtis,

 

thanks for the reply, I will try this out and see how it works.

 

thanks again for your help!

0 Likes