Using if statement to change text in tag

Using if statement to change text in tag

stacey.hennigL6B3T
Participant Participant
721 Views
5 Replies
Message 1 of 6

Using if statement to change text in tag

stacey.hennigL6B3T
Participant
Participant

I have a pipe tag that i am trying to get it to change the text displayed by using an "if" statement. i want to be able to tag a pipe and then it display specific text depending on the system type. eg: if the system type name is "sanitary drainage" i want the text to display as "SD". 

is this possible? i tried using "if(system type = sanitary drainage, SD, XX) but it cannot read the system type from within the family type. 

any help is mucho appreciated 

0 Likes
722 Views
5 Replies
Replies (5)
Message 2 of 6

craigjonnson
Collaborator
Collaborator

Hi, you cant run expression statements based on objects outside of the family. Why not edit the tag to read the System Abbreviation, then add size or whatever after.

Message 3 of 6

stacey.hennigL6B3T
Participant
Participant

Thanks for the response, I neglected to mention that the file is a linked revit file from a separate contractor. we do not have access to change the system abbreviation (what we usually use). So I need to find a way to change the output of the text

0 Likes
Message 4 of 6

iainsavage
Mentor
Mentor

@stacey.hennigL6B3T  schrieb:

the file is a linked revit file from a separate contractor. we do not have access to change the system abbreviation


Is this a cloud model on BIM360 or is it a file that they've sent you?

If they've sent you the file then you CAN edit it - keep the original for traceability purposes, create a copy, edit it and use that as your linked file. I've had to do that regularly with architectural and structural files in order to get view filters etc to work.
I might be wrong but tags can only display the values of the parameters applicable to the object being tagged, so if you really can't edit the parameters then I don't think you can use tags to do what you are trying to achieve.

Message 5 of 6

stacey.hennigL6B3T
Participant
Participant
It is a cloud based model unfortunately. I am thinking of contacting the contractor to change the abbreviation however this may mess with their standards in house. thanks for the response, i was thinking that I am limited to the parameters being as they are.
0 Likes
Message 6 of 6

iainsavage
Mentor
Mentor

I tried adding a new parameter in the host model and associating it to pipe systems but it wouldn't let me add a value for pipe systems which are contained in the linked model so I think the only option is to get the link edited or use dumb text.