--- In [email protected], "Josh Rosenthal" <[EMAIL PROTECTED]> >
Anyone want to write a DK script to cycle through a user selected
subset of layers in a map, use a layout as a template and using
Printer=PDFCreator produce all the component layers?
==
I'll take the first crack at this... A little unfair because I am
tearing off some of the easiest parts.
For the purposes of a quick solution, I am going to assume:
1) All non-hidden layers in the map should be printed
2) PDFCreator is selected as the default printer in windows
3) The map is to be on an 8.5x11 "paper"
4) There is no map legend
5) Other stuff I haven't considered yet???
We can always relax these assumptions later.
The code (which I will upload to the Files area as "Layers2PDF
v0.1.rsc") loops through all layers three times:
Loop 1: For each layer, store whether it is "hidden" or "shown." Then
hide it.
Loop 2: For layers that were found to be "shown" in Loop 1, show each
one by one, open a layout, put the map with just that layer shown in
the layout, and print. Then hide the layer again.
Loop 3: Restore all layers to their original status.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Maptitude/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Maptitude/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/