Void On/Off Parametric Formula

Void On/Off Parametric Formula

cwilliamson232RQ
Enthusiast Enthusiast
1,549 Views
9 Replies
Message 1 of 10

Void On/Off Parametric Formula

cwilliamson232RQ
Enthusiast
Enthusiast

I need some help writing this  formula. I have a Void On either Side of this Component but want to be able to turn them on and off by a check box. What is best way to do this? See attachment. 

When I select Side 1 Location I want to see the Void on Side 1. 

When I select Side 2 Location I want to see the Void on Side 2

 

 

 

0 Likes
Accepted solutions (1)
1,550 Views
9 Replies
Replies (9)
Message 2 of 10

barthbradley
Consultant
Consultant

You can't turn off the Void if it's attached.  You'll require two different cut geometries, then you can use formula to control which geometry is visible. 

 

...another approach might be to add geometry instead of cut geometry.  That could be controlled through a Visibility parameter.    

0 Likes
Message 3 of 10

cwilliamson232RQ
Enthusiast
Enthusiast

Ok found a workout around for my original question but now I have another question. 

 

If I have 4 Selection Yes/No Boxes and want to only be able to Select 1, how does that work? 

EXAMPLE: 

HEIGHT 8

HEIGHT 9 

HEIGHT 12

HEIGHT 21

 

0 Likes
Message 4 of 10

ToanDN
Consultant
Consultant

Use an Integer parameter instead of Yes/No.

 

1 will turn on Box 1, 2 will turn on Box 2, etc... 5 and above will turn all boxes off.

Message 5 of 10

barthbradley
Consultant
Consultant

What was your workaround?  

 

Regarding new question, what exactly do you want to do?  What do you mean by " only be able to Select 1"? 

 

...if you are thinking what I'm thinking you are thinking, that would require one looooong formula of nested if statements evaluating every combination of possibilities.  

0 Likes
Message 6 of 10

cwilliamson232RQ
Enthusiast
Enthusiast

Well when i have 2 Check Boxes I can just say   =not(OPTION 1)

But Not sure what to do when there is 4 Pick Boxes. be nice if i could say.   = not(HEIGHT 12, not(HEIGHT 9, not(HEIGHT 8)))

 

My work around is kinda hard to explain. I still do not know how to basically just turn a VOID on and off. 

I can trick the VOID to make it be negative but it now what I want to show. 

 

Is there a way to be able to just TURN on and TURN off a VOID ? 

 

 

 

0 Likes
Message 7 of 10

barthbradley
Consultant
Consultant

Yes, that's different from turning OFF the void. You are changing the extents of the void, but the void must cut at least 1/32" of the geometry in its "OFF" state.  The attached void cannot be controlled via a visibility parameter as I stated. 

0 Likes
Message 8 of 10

ToanDN
Consultant
Consultant

@cwilliamson232RQ wrote:

I need some help writing this  formula. I have a Void On either Side of this Component but want to be able to turn them on and off by a check box. What is best way to do this? See attachment. 

When I select Side 1 Location I want to see the Void on Side 1. 

When I select Side 2 Location I want to see the Void on Side 2

 

 

 


Voids cannot be associated with Visibility parameters.  You need to give the void a length parameter and control the parameter in order for the void to cut or not cut the solid.  Then you can associate this parameter with a yes/no box.  Zip and share your family if you need it to be looked at.

0 Likes
Message 9 of 10

cwilliamson232RQ
Enthusiast
Enthusiast

see attachment. 

 

0 Likes
Message 10 of 10

ToanDN
Consultant
Consultant
Accepted solution

For this particular family, just add a flip control.

 

Annotation 2019-12-09 141714.pngAnnotation 2019-12-09 141621.png