Delete a certain sentence in multiple tags

Delete a certain sentence in multiple tags

Anonymous
Not applicable
905 Views
2 Replies
Message 1 of 3

Delete a certain sentence in multiple tags

Anonymous
Not applicable

Hello,

 

I need to change a specific text in multiple tags. is there a easy way to do this? 

I want, as the picture below shows to delete: A01RK_0101CO_101 and only leave the last few letters. 

Is there a way to easly do this? This will save me alot of time if i dont have to delete the part individually for each component.

 

Thanks,

 

0 Likes
Accepted solutions (1)
906 Views
2 Replies
Replies (2)
Message 2 of 3

L-Vettz
Collaborator
Collaborator
Accepted solution

I would use dynamo for this.

1. Make a script that gets all the tags of the type you are using in the view. (or just get the elements themselves, idk what your specific situation looks like)
2. Get the hosted elements of those tags
3. Then get the list of parameter values the label in the tag is using

4. use a trim node to clip the last 5 characters of each item in the list

5. then write to parameter value of the list from step 2.
Done. Should take about 5-10 minutes, and you could run it on multiple views if need be.

If you don't know how to use dynamo, I think a schedule is your best bet to change them all quickly. Make a schedule of the elements being tagged, with one of the fields being the mark or whatever parameter you are trying to edit. (im just assuming its mark). Then you can kinda tab through each item and remove the last 4 characters.

You may also be able to do some kind of project parameter or calculated parameter that just modifies the parameter you are tagging originally, but im not sure how that would work without a more detailed description of the parameter you are tagging now.


-LV
Message 3 of 3

Anonymous
Not applicable

Thanks, this should work i think! ill give it a try

0 Likes