Multiple visibility parameters not(.... and....)

Multiple visibility parameters not(.... and....)

sdendekker
Observer Observer
3,619 Views
11 Replies
Message 1 of 12

Multiple visibility parameters not(.... and....)

sdendekker
Observer
Observer

Hi Guys,

 

A question again; 

I have a family in which I want to show/hide a nested family in 3 different positions. For example;

 

Position 1

Position 2

Position 3

 

If Position 1 is visible (checked) then Position 2 and Position 3 should be not

If Position 2 is visible (checked) then Position 1 and Position 3 should be not

If Position 3 is visible (checked) then Position 1 and Position 2 should be not

 

Which formula do I have to use. I get it with 2 positions, for example;

 

If position 1 is visible, and position 2 should be not   = not(position 2) 

If position 2 is visible, and position 1 should be not   = not(Position 1)

 

But how do I get it work with 3 positions?

 

Thanks for your help!

0 Likes
3,620 Views
11 Replies
Replies (11)
Message 2 of 12

Avaris.
Advisor
Advisor
Message 3 of 12

Anonymous
Not applicable

I beg your pardon, but what formula would I have to put in Position  so that it is not greater than 3 in this case? Because if it is greater than 3 the parameter will not show any of them. How to lock so that it is not greater than 3?
Capturar.PNG

Thanks in advance for your diligence

Message 4 of 12

TripleM-Dev.net
Advisor
Advisor

Hi,

 

Pick one that should be the default, for example:

Position3 is the default:

Position3 = Position > 2

Position2 is the default:

Position2 = not(or(position1, position3)) 

 

Like this any other value than 1 or 2 will turn 3 on.

Additionally I always give the "Position" parameter a tooltip giving user a explanation of the values and the default value.

 

- Michel

Message 5 of 12

KotairaKeila
Enthusiast
Enthusiast

Got it! I tested and it worked!! Thank you Michel! You are the man!! 😄

Capturar.PNG

Regards,

Kotaira.

0 Likes
Message 6 of 12

TripleM-Dev.net
Advisor
Advisor

Hi,

 

Glad it helped.

In you're case you don't need to add the inequality sign for all parameters, just for the parameter that needs to be the default one.

 

Looks like you want Position3 as default; 

Set the formulas like in the sample below, it's a bit clearer:

FamilyFormulaEqual.PNG

 

 

 

 

 

 

 

 

 

 

- Michel

Message 7 of 12

akesh
Advocate
Advocate

Hi Guys

 

This is as close to the solution to my problem that I have found.  However cannot get this to work...

I am creating a Room Tag.  In this Room Tag I have created multiple Room names with different widths and have assigned them to Instance visibility parameters.  I have created an instance integer parameter as per the solutions here.

My intention is to have one Room Tag, and control the different Room Name Label width options by adjusting the integer which will display that assigned Room Label width ONLY, and the rest of the Room Name labels shall not display.

 

From the integer formulation explained here I had thought I would be a solid solution for the visibility control via this integer method for my Room Tag's Room Name label.  Unfortunately this does not seem to work with the Room Tag.

 

Any suggestions/solutions guys?

Akesh Jugmohan
Senior Architectural Technologist
BIM Manager
Message 8 of 12

TripleM-Dev.net
Advisor
Advisor

Hi,

 

Instance parameters don't work for Tags (unfortunately),

Use the "integer-select" method as type and create types in the project (or already create them in the Family).

 

- Michel

Message 9 of 12

akesh
Advocate
Advocate

Hi Michel

 

Thanks for the advise.

Will give that solution a try now.

I wish Revit allowed the ability to adjust the widths of tags to suit in the view, so this route could be avoided.

Akesh Jugmohan
Senior Architectural Technologist
BIM Manager
0 Likes
Message 10 of 12

TripleM-Dev.net
Advisor
Advisor

Hi,

 

Yes and No.

Mostly we place a large amount of tag's, maintaining the instance settings for those could be a nightmare.

Selecting by Type and replacing by another type is for most tags easier.

But, it would be nice if it could for those not-often used flexible tags, sure.

 

Good luck.

- Michel

Message 11 of 12

RizielVillagonzalo
Community Visitor
Community Visitor

RizielVillagonzalo_0-1669346322785.png

 

Just passing by. Try this... Just change the position number to 1, 2 or 3.

0 Likes
Message 12 of 12

ToanDN
Consultant
Consultant

@RizielVillagonzalo wrote:

RizielVillagonzalo_0-1669346322785.png

 

Just passing by. Try this... Just change the position number to 1, 2 or 3.


Simpler:

Position1 = Position = 1

Position2 = Position = 2

and so on.

0 Likes