ommit ".jpg" from text label

ommit ".jpg" from text label

danezeq
Collaborator Collaborator
451 Views
2 Replies
Message 1 of 3

ommit ".jpg" from text label

danezeq
Collaborator
Collaborator

I have a parametric text label which includes an image parameter. it suppose to display the file name of the image, which it does. i just want to display the filename without the ".jpg" extention. can i do it with a formula?

or - extract the first letter of the filename will be also great.

Thanks all!

 

danezeq_0-1591274075814.png

 

0 Likes
452 Views
2 Replies
Replies (2)
Message 2 of 3

L.Maas
Mentor
Mentor

 

There is no string manipulation in Revit formulas.

You could accomplish this with the help of Dynamo. Would not be too difficult to create a script to read the data and then push it in a new  parameter and use that for your tag

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 3 of 3

danezeq
Collaborator
Collaborator

But then i'll need to run that Dynamo script everytime i'll have new families contains that image parameter, right?

 

In that case i'll prefer to get rid of all the image parameters and replaces it with text parameter, once for good. (i don't need the image parameter anymore i can handle with text parameter)

0 Likes