I've written a macro that I call "Saved Layer Settings". I will refer to it here as "SLS". My plan is to describe it in a series of posts in this thread.
What does SLS do?
SLS reads and displays information about layers:
Screenshot with Page 2 active:
Screenshot with Page 1 active:
Screenshot with "Master Page" chosen:
More to come...
Save
hywelharris said:One of the things I often need to do is set layer options across pages. So, if I have a non-printing layer where I store reference data I need to be able to set printing OFF for all pages.
I took a swing at that - for just one layer name at a time - with a macro to apply settings for a selected page layer name across all pages. See this thread.
Have you tried that?
hywelharris said:Why is the page Name showing at the top? If you are going to apply changes to all pages thats not necessary surely?
This macro gets its list of layer names from the active page. When a layer name is selected, the settings initially shown for visibility, editability, and printability come from that layer on the active page. I have the active page name on the form to show where that information is coming from.
I've changed the label to read "Active Page".
hywelharris said:'Apply To All Layers', surely that should be 'Apply To All Pages'?
That is a brain fart on my part. Since you brought it to my attention, it has been corrected. Thanks!
hywelharris said:setting the active layer for every page is still something I'd like to be able to do
In the earlier thread, you made a reference to making sure the focus was on a particular layer for every page. I did not understand at that time what you meant, and I didn't follow up on it. From what you have written in this thread, I think that I now correctly understand that what you were referring to is which layer on each page is active.
So, here's a new version of "Layer Settings All Pages".
In the screenshot below, it is set up to make Layer 2 printable on all pages, but to leave visiblity and editability alone:
In the screenshot below, it is set up to activate Layer 3 on all pages.
When "Activate this layer" is checked, then the form automatically sets visiblity and editability for the selected layer to both be true, sets both of those to apply to all pages, and disables those controls.
The macro:
Layer_Settings_All_Pages(4).gms
Note added 2017-02-14 21:42: Replaced the GMS file with version (4).
Here's a simple icon for it:
LSAP icon.zip; looks like this:
I just replaced the GMS file a couple of posts earlier with a newer one - Layer_Settings_All_Pages(4).gms. Changes were made to fix some goofiness in the way the form refreshes after applying changes to layers. I hadn't done enough testing after adding the "Activate this layer" capability.
I add here, too, that Layer Settings All Pages hasn't gotten as much attention as Saved Layer Settings to try to make it "bulletproof". For example, when working through the document to apply layer settings, LSAP does not check to see if different page layers (on one page) have the same name. I don't think it will crash if that is the case, but it will apply changes to only one (I think the top-most) matching-name layer on such a page.