Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Void On/Off Parametric Formula

9 ANTWORTEN 9
GELÖST
Antworten
Nachricht 1 von 10
cwilliamson232RQ
1194 Aufrufe, 9 Antworten

Void On/Off Parametric Formula

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

 

 

 

9 ANTWORTEN 9
Nachricht 2 von 10
barthbradley
als Antwort auf: cwilliamson232RQ

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.    

Nachricht 3 von 10

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

 

Nachricht 4 von 10
ToanDN
als Antwort auf: cwilliamson232RQ

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.

Nachricht 5 von 10
barthbradley
als Antwort auf: cwilliamson232RQ

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.  

Nachricht 6 von 10
cwilliamson232RQ
als Antwort auf: barthbradley

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 ? 

 

 

 

Nachricht 7 von 10
barthbradley
als Antwort auf: cwilliamson232RQ

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. 

Nachricht 8 von 10
ToanDN
als Antwort auf: cwilliamson232RQ


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

Nachricht 9 von 10
cwilliamson232RQ
als Antwort auf: ToanDN

see attachment. 

 

Nachricht 10 von 10
ToanDN
als Antwort auf: cwilliamson232RQ

For this particular family, just add a flip control.

 

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report