Solved

Rename Files by adding prefix from table attribute

  • 12 April 2024
  • 1 reply
  • 20 views

Userlevel 2
Badge +15

I have 4 files I need to rename. To rename them I need to add the values of an attribute in a table to each of their names; please refer to the screenshot for this example:

SS000001.PNG

would be renamed 18085SS000001.PNG by adding the value from the STCLID Attribute in the table in the screenshot to the filename. 

 

Seems as a first step would be “move” the values in the STCLID attribute to the <missing> rows?

 

What is the best way to go about this?

 

icon

Best answer by liamfez 12 April 2024, 20:04

View original

1 reply

Userlevel 5
Badge +13

If you need the STCLID values on the other features (features 5-8 in your example) to work with it there, you could utilize the FeatureMerger or a FeatureJoiner (using “path_filename” and “PHOTO” attributes to do the merge/join). You can use the StringConcatenator to concatenate the “PHOTO” (or “path_filename”) and “STCLID” attributes.

Reply