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: 

Enable and disable showing a Text label on family

21 ANTWORTEN 21
GELÖST
Antworten
Nachricht 1 von 22
danezeq
5126 Aufrufe, 21 Antworten

Enable and disable showing a Text label on family

Hey

 

I have a Tag with 3 text labels:

1.  text label which always show and display the text value of the parameter

2 text label that should present a text, and would show only if the text value of the third parameter is not empty

3. text label that will show it's text value, and in some cases that value will be empty, so i want to hide 3 and 2.

 

as for 3, it's simple. but what about 2? How can i hide that text label? (without adding another yes/no parameter that will result more work for the user)

T.jpg

21 ANTWORTEN 21
Nachricht 2 von 22
PavelAnd
als Antwort auf: danezeq

Hi @danezeq. Why "that will result more work for the user"? Make yes/no parameter for the type and if the element have 3 text labels, then use 1 type. If not - 2 type. Unfortunately you can not create a formula using a text value.

Best regards, Pavel Plotitsyn.

Nachricht 3 von 22
martijn_pater
als Antwort auf: danezeq

You can probably use a calculated value. The third has a yes/no parameter?

Nachricht 4 von 22
danezeq
als Antwort auf: PavelAnd

beacuase in addition to entering the text value for the 3rd label, the user will need to thick V near another (4th) yes/no parameter. no?

Nachricht 5 von 22
PavelAnd
als Antwort auf: danezeq

Look settings below. After that Type1 will show all text, Type2 only text 1. The user only needs to use the correct type of label.

 

1.png2.png

 

Or create text 2 by formula. But you need yes/no for that too.


image.png

Best regards, Pavel Plotitsyn.

Nachricht 6 von 22
Anonymous
als Antwort auf: danezeq

Create a Yes/no instance parameter that applies to both 2 and 3.  1 is always visible, and if three is empty, the user can just switch it off, as it will be obvious that it is redundant.

Nachricht 7 von 22
martijn_pater
als Antwort auf: Anonymous

You can't check if the text parameter has a value directly, so then I think above is the best answer associating 2/3 simultaneously. What text should the second represent in which situation? Perhaps elaborate a little more as to what these values should be/do, depending on that the answer could be different perhaps.

Nachricht 8 von 22
danezeq
als Antwort auf: martijn_pater

This is a tag for a SIGNAGE symbol.

the orange line represent the sign, the orange arrow is the front side.

 

the "1" on the tag is the text on front

"2" is a non parametric text label

 

some signs has text on both side while other have only one side printed.

"3" is the rear textlarge.jpg

Nachricht 9 von 22
martijn_pater
als Antwort auf: danezeq

Then just one on/off parameter "two-sided" associated to 2/3. If on they show/when off it's a one-sided sign... but wouldn't this be properties of the sign itself rather then the tag? ie. using shared parameter "two-sided"

Nachricht 10 von 22
danezeq
als Antwort auf: martijn_pater

Ok i think i done exactly what you sugested (the second methood) but i propapbly skip an impotant step becuse the parameter doesnt show up on properties window:

 

https://www.youtube.com/watch?v=NcRlW_d2JK4

Nachricht 11 von 22
martijn_pater
als Antwort auf: danezeq

Well, you can only use type parameters for the tag, and you can't associate the shared parameter to the visibility of the label unfortunately. So the visibility for labels can only be controlled using tag types.

I think you could do something like attached, but I don't know if it is what you're looking for. Don't know what's best practise for this type of thing.

labels.png

 

 

 

 

Nachricht 12 von 22
danezeq
als Antwort auf: martijn_pater

the file youve uploaded works perfect!

could you explain how did you make it?

i have to build it from scratch anyway, this project work on 2019 version anyway, and it's a good chance to learn.

Nachricht 13 von 22
martijn_pater
als Antwort auf: danezeq

Sure, how I did this was as follows:
-Created shared parameters for two-sided (on/off), textA,textB,textC
-Created three labels; first returns textA value // second calculated value; if([two-sided],textB," ") // third calculated value; if([two-sided],textC," "), so it returns a space empty field for the label if two-sided parameter is false/off.
-added visibility type parameter to 2/3 like above mentioned for controlling type tag label visibility.

For one-sided family added the two-sided parameter with 1=0 formula. And for two-sided family also textB/C parameters (and some overrides for the text you don't really need).

Nachricht 14 von 22
danezeq
als Antwort auf: martijn_pater

i lost you at this point: second calculated value; if([two-sided],textB," ") // third calculated 

 

1.what is "two-sided"? is it a parameter also? you didnt state.

2. i can see on your uploaded file you added 3 labels, with just parameter name= txtX and sample value = txtB

i mean, in which point your use the formula?

Nachricht 15 von 22
danezeq
als Antwort auf: martijn_pater

all this steps made in the sign family or the tag family?

Nachricht 16 von 22
martijn_pater
als Antwort auf: danezeq

These are shared parameters, both for the family and tag. The formula is in the labels txtB/txtC.

shared_parameters.pngcalculated_labels_.jpg

Nachricht 17 von 22
danezeq
als Antwort auf: martijn_pater

I keep read again and again your instuctions and i don't follow:

i dont find any formulas at the tag family. i find it only at the sign family file ( i can see it in family types window > formula column)

 

 

Nachricht 18 von 22
martijn_pater
als Antwort auf: danezeq

You will find it when you edit the labels in the tag.

 

edit_calculatedlabel_.jpg

Nachricht 19 von 22
danezeq
als Antwort auf: martijn_pater

okay i think i got it all for the tag.

as for the sign family,

Can you explain what you did?

i can see you enter again this formula in the sign family?

X.jpg

Nachricht 20 von 22
danezeq
als Antwort auf: danezeq

ive made some progress, it's actually work now but the "a" field is missing (and if i check it, i can see the question mark in the place of atext) im still investigating this...

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