Select to view content in your preferred language

Data driven pages. File name format

2765
6
09-26-2011 04:39 AM
Status: Open
Labels (1)
JukkaHellen1
Deactivated User

It would be great if it would be possible to create custom formats for the file names that are produced by the data driven pages feature. Now it looks like this in ArcGIS 10 (ArcMap):

0EM30000000CrzN

You can choose etiher index, name or page number to be included in the file name

I think it should be done as in most file renaming tools:
The file names could be named using format strings like %D = date %C = creator %n = page number %N = page name etc.
Here's a couple of examples from Thunar File manager:

  • %A The full weekday name according to the current locale.
  • %b The abbreviated month name according to the current locale.
  • %B The full month name according to the current locale.
  • %c The preferred date and time representation for the current locale.
  • %d The day of the month as a decimal number (range 01 to 31).
  • %F Equivalent to %Y-%m-%d (the ISO 8601 date format).
  • %H The hour as a decimal number using a 24-hour clock (range 00 to 23).
With this you could automagically create files that contain both page name, number and some other data.  Example: helsinki_%n_%N.pdf would create helsinki_1_east.pdf where 1 is the page number and east is the page name.

 



6 Comments
DeanAnderson2

Currently the files name option in the Export Layout MapSeries Pane includes only three options as follows: 

DeanAnderson2_0-1612376195417.png

Could we have a new option: Multiple PDF Files (Page Name as File name). We use a field for naming the output file (pdf).  Having only a suffix option means we have to delete the layout name after producing (exporting) the layout files. 

 

 

 

KoryKramer

It's a bit of a hack, but if you leave the name blank, then the page name as the "suffix" will simply be the pdf file name.  

In the image below you can see that I'm exporting to my C:/EXPORTS folder and I leave everything after EXPORTS blank.  When I choose 'Multiple PDF Files (Page name as suffix)' the parameter changes to C:/EXPORTS/.pdf and the separate pdfs are created using only the Page Name for the file name.

(In this case, my page name is 5).

KoryKramer_0-1612445094365.png

 

DeanAnderson2

You are correct.  That will work for now.  But... still think the naming options should be added. 

 

Thanks 

 

KoryKramer

You're welcome.  Glad that it helps you name your pdfs how you need to now.  

The idea is still open.

Cheers

JeffBarrette
Status changed to: Open

Hello Dean.  We have a mid-term issue: "Allow dynamic formatting when creating a map series output file name."  It is related to another IDEA that we got a while ago: https://community.esri.com/ideas/4323-data-driven-pages-file-name-format

I will add you new IDEA to our issue.  I'm sure you are aware that with a very simple Python script you would have complete control of output file name.

 

@KoryKramer is might be worth combining these two IDEAS, just an idea.

LindaGreen

I know this is ancient, but I would really love some kind of dynamic or parameter-based file naming capability.

Right now I'm making a series of maps of counties across several states. Some counties are tall, some are wide, and some are roughly even, so I have three different layouts (each using the same map frame) to best match the shape of each county - let's call them LayoutA, LayoutB, and LayoutC.

Ideally, I'd like each map exported as its own page, with the state name and county name; some of the county names repeat across states, so I can't use the county name alone or else some of the files will be overwritten.

I can have Pro export the files as LayoutA_Washington, LayoutA_Jefferson, LayoutB_Adams, LayoutB_Madison, LayoutC_Monroe, LayoutC Johnson, but those need to be renamed and reorganized to create a polished deliverable.

It would be really helpful to be able to pull my map series field names into the file name (plus the other attributes mentioned above - I don't need those but I can see other uses for things like date/time) and build a custom file name, say %StateName%_%CountyName%, instead of being stuck with the layout name + page name or page index. If there is dynamic text I can add to a map layout, it would be nice to have the option to include that text in the file name too.

I guess I could concatenate the state name and county name into a new field and use that to drive the maps, and then use Kory's trick to output just that map page name, but having built-in parameter options would be a lot more efficient and intuitive.