Control Yes/No Visibility with Text Parameter

Control Yes/No Visibility with Text Parameter

jodonoghueJAYY4
Explorer Explorer
984 Views
11 Replies
Message 1 of 12

Control Yes/No Visibility with Text Parameter

jodonoghueJAYY4
Explorer
Explorer

I'm trying to set up a titleblock which automatically shows the right status description when the status code is typed in.

 

I have a "Suitability" text parameter that gets typed in on each sheet. I then have each of the suitability descriptions as text with a visibility parameter. I'd like to set the titleblock up so that if you type

"S3" into the Suitability Code parameter, the correlating description is made visible.

 

I would have assumed that you could check the visibility parameter with the function <Suitability = "S3">, but this brings up an 'Improper use of boolean expressions' warning

0 Likes
985 Views
11 Replies
Replies (11)
Message 2 of 12

Mike.FORM
Advisor
Advisor

Unfortunately you cannot check text parameters against other text parameters.

How many different options are there for what someone might type in your Suitability parameter?

You could use nested generic annotation parameters.

Message 3 of 12

lauri_barnhart
Autodesk
Autodesk

@jodonoghueJAYY4 - Welcome! Thanks for your question.

 

Did the information provided by @Mike.FORM help?

 

If yes, please mark the reply as the accepted solution.

 

This helps other community user find a solution to similar problems.

 

If not, please provide an update so other members can jump in with further suggestions.

 

Thanks!

 

Lauri | Community Manager


Lauri | Community Manager
0 Likes
Message 4 of 12

jodonoghueJAYY4
Explorer
Explorer

Apologies, I thought I'd responded to this!

 

We need to be able to accommodate roughly 13 different suitabilities. Nested generic annotations would work well for showing the information in the titleblock, but I'd ideally like to have this controlled by the 'Suitability' text parameter, as this is used to automatically name plotted/exported files.

0 Likes
Message 5 of 12

ctm_mka
Collaborator
Collaborator

@jodonoghueJAYY4 i do a similar thing for key plans. use a lookup table. how this works:

  • an integer type parameter reads the value of the suitability parameter, and returns a corresponding number from the lookup table.
  • visibility parameters read the integer parameter and turn themselves on/off if they find the correct integer.

lookup example.png

0 Likes
Message 6 of 12

Mike.FORM
Advisor
Advisor

You can have the Suitability Text be set based on a Family Type dropdown by doing something like this.

MikeFORM_0-1777048478592.png

In this example I am comparing the "Suitability Choice" parameter to see if it equals one of the "family type" type parameters ("S1", "S2") that are set to the individual options.

If you have 13 options you will need 12 of these helper parameters as with nested if statements, if any of none of the preceding conditions are met the final "false" value can be your 13th option.

 

Revit allows you to compare 2 different "Family Type" parameters to see if their values are equal in formulas and then output a text value.

0 Likes
Message 7 of 12

lauri_barnhart
Autodesk
Autodesk

Hello @jodonoghueJAYY4, we appreciate you posting your question.

 

Did newest replies by @Mike.FORM and @ctm_mka help clarity your question?

 

If they helped, feel free to accept them as the solution.

 

This helps other users benefit from the shared solution.

 

If the issue persists, let us know with an update so we can assist further.

 

Best,

 

Lauri | Community Manager


Lauri | Community Manager
0 Likes
Message 8 of 12

jodonoghueJAYY4
Explorer
Explorer

Mike,

 

This is about 50% of a solution, however this doesn't then change the Suitability parameter in the project, and I'm trying to control the titleblock text with the Suitability parameter, rather than the other way around.

0 Likes
Message 9 of 12

Mike.FORM
Advisor
Advisor

In my example I am using the Suitability Choice (family type parameter, instance) to create a drop down.

That parameter is then compared with the values of the S1 and S2 (also family type parameters, that are type based) to see which one it matches.

Using a formula in the Suitability parameter (text parameter, instance) I am outputting the text value which can then be put into a label in the titleblock.

 

So to recap, we make a selection with Suitability Choice and compare it to the helper parameters S1 & S2, and then output text into the Suitability parameter.

0 Likes
Message 10 of 12

jodonoghueJAYY4
Explorer
Explorer

So this works for changing the Generic Annotation on the titleblock, however this doesn't then change the text in the Suitability label, nor can it be scheduled or printed when the titleblock is used in a project

0 Likes
Message 11 of 12

Mike.FORM
Advisor
Advisor

I think I understand the issue.

The parameter within the titleblock is assigned to the titleblock element but then in the project it is set to sheets as well and Revit does not allow you to change a the value in a sheet parameter using a formula in a titleblock family.

If you remove the project parameter assigned to sheets you would be able to have the text change in the titleblock but then you wouldn't be able to schedule the value in a sheet list.

Message 12 of 12

jodonoghueJAYY4
Explorer
Explorer

I think it's exactly that, which is a little frustrating, particularly given that a label can read a sheet parameter.

 

Are there any other ways to set this up so that the parameters are at least in the same properties pallet, rather than having to tell people to change the Suitability sheet parameter and then use the drop down in the titleblock parameter?

0 Likes