djriff

Parts ofa file name to become a field string.

Discussion created by djriff on Jun 2, 2012
Latest reply on Jul 2, 2012 by djriff
Hello everyone,

I have a script that takes an MXD and makes a polygon of the outline of the Main Dataframe and has some metadata added to the fields. All of my MXD's have a product ID as their file name. I also have a field named product ID. Is there a way to make the string that is calculated into my Product ID field be populated by the name of the MXD? Is there also a way to take out certain parts of a file name, as my Product ID has other information such as Area Covered, Product Type, Edition, ETC?

Outcomes