Enable and disable showing a Text label on family

Enable and disable showing a Text label on family

danezeq
Collaborator Collaborator
6,173 Views
21 Replies
Message 1 of 22

Enable and disable showing a Text label on family

danezeq
Collaborator
Collaborator

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

0 Likes
Accepted solutions (2)
6,174 Views
21 Replies
Replies (21)
Message 2 of 22

PavelAnd
Advisor
Advisor

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.

0 Likes
Message 3 of 22

martijn_pater
Advisor
Advisor

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

Message 4 of 22

danezeq
Collaborator
Collaborator

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?

0 Likes
Message 5 of 22

PavelAnd
Advisor
Advisor

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.

0 Likes
Message 6 of 22

Anonymous
Not applicable

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.

0 Likes
Message 7 of 22

martijn_pater
Advisor
Advisor

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.

0 Likes
Message 8 of 22

danezeq
Collaborator
Collaborator

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

0 Likes
Message 9 of 22

martijn_pater
Advisor
Advisor

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"

0 Likes
Message 10 of 22

danezeq
Collaborator
Collaborator

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

0 Likes
Message 11 of 22

martijn_pater
Advisor
Advisor
Accepted solution

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

 

 

 

 

0 Likes
Message 12 of 22

danezeq
Collaborator
Collaborator

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.

0 Likes
Message 13 of 22

martijn_pater
Advisor
Advisor
Accepted solution

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

0 Likes
Message 14 of 22

danezeq
Collaborator
Collaborator

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?

0 Likes
Message 15 of 22

danezeq
Collaborator
Collaborator

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

0 Likes
Message 16 of 22

martijn_pater
Advisor
Advisor

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

shared_parameters.pngcalculated_labels_.jpg

0 Likes
Message 17 of 22

danezeq
Collaborator
Collaborator

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)

 

 

0 Likes
Message 18 of 22

martijn_pater
Advisor
Advisor

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

 

edit_calculatedlabel_.jpg

0 Likes
Message 19 of 22

danezeq
Collaborator
Collaborator

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

0 Likes
Message 20 of 22

danezeq
Collaborator
Collaborator

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

0 Likes