Structural Foundation Tag Visibility

Structural Foundation Tag Visibility

anaszok12
Contributor Contributor
1,176 Views
5 Replies
Message 1 of 6

Structural Foundation Tag Visibility

anaszok12
Contributor
Contributor

Hi everyone,

 

I'm creating a structural foundation tag that shows the pile deviation value.  My aim is to control the line and label visibility based inputted value inside the project - if positive it will show the right/up direction and if negative it will show the other way around. 

 

Upon testing the family, it has no problem to show the pile deviation value but I'm having a problem to connect between the value and visibility of family line and label. Please help me with this.

 

Cheers,

Anas

 

1.JPG

 

2.JPG

 

3.JPG

 

0 Likes
Accepted solutions (1)
1,177 Views
5 Replies
Replies (5)
Message 2 of 6

shefypattambi
Collaborator
Collaborator

Hi @anaszok12 

Could you please check your Deviation X parameter type? it is showing as a Family parameter instead of a shared parameter.

shefypattambi_0-1636960523926.png

 



0 Likes
Message 3 of 6

ToanDN
Consultant
Consultant

Parameters in the host family can only drive value of Labels in the tag family.  So, if you create the arrows as special characters in Labels then you might be able to turn them on/off based on the host parameters values.

0 Likes
Message 4 of 6

ToanDN
Consultant
Consultant
Accepted solution

See example Revit 2022 file.  I don't have Revit 2021.

 

ToanDN_0-1637013101048.png

 

Message 5 of 6

anaszok12
Contributor
Contributor

my bad, thank you for pointing out

0 Likes
Message 6 of 6

anaszok12
Contributor
Contributor

Thank you for the solution. 

 

I want to take it further by writing if statement in the formula e.g if Deviation X>0 then tick the visibility box. However, I hit a dead end considering Revit limited capability in handling parameter data type. The ways that i tried are-

 

1. Deviation X/Y type of parameter is text, then the if statement cannot be used. The other way around is by detecting "-" in the string but Revit is incapable of doing that.

 

2. Deviation X/Y type of parameter is number, then inside the tag label i can only display '0' or '?' and not empty space like a text.

 

Hence I leave the family as it is and scripted a dynamo graph to do all the ticking of visibility parameter.

0 Likes