1

I have a point feature class containing attachments corresponding to jpg files (sometime more than one jpg per feature). I would like to use the "field calculator" to calculate/record a new field that would contain file paths or names of attachment files. Does someone know how to do that? I am new to Python and VB script...

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked May 15, 2014 at 14:17
1
  • 1
    Could you please supply a little more context--maybe a screenshot of the attribute table? I am having a hard time visualizing your dataset. Commented May 15, 2014 at 14:23

1 Answer 1

1

I have assumed that you are trying to update the name of the file in the attribute table with the point layers unique ID of some type e.g. changing Temp646.jpg to CB1.jpg.

This can be done by joining the related attachment table to the feature class and then using field calculator to update the ATT_NAME column in your attachments table.

The steps are:

  1. Add Feature class and attachment table to mxd
  2. Conduct a join using between the attachment table and feature class using GlobalID and REL_GLOBALID and enable editing
  3. Open the attachment table with the join in place and you then can use the field calculator to update the ATT_NAME field.
  4. "CB " + !your table column value! +".jpg" The expression uses python syntax so make sure you flip the radio button on top of the field calc
PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
answered May 15, 2014 at 20:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.