I have updated Layers Manager with the following changes:

  1. Changed the tool icons to large format pdf, svg and png files to support high DPI displays. In SketchUp versions older than 2016 the png icons will be used. In versions 2016 or later pdf icons will be used in Mac OSX versions and svg in Windows versions.
  2. Broke the layers.rb file into layers.rb at the Plugins folder level and layers_loader.rb in the layers folder. This permitted signing of the extension and providing it on the Extensions Warehouse.
  3. Added a new tool called Complement All Layers.

You can download layers_2.3.rbz by clicking on this link. You can also download the installation and description PDF here.

Layers Manager Tool Overview

There are two personalities to the Layers Management tool: Layer0 Warning, which attempts to keep one out of trouble by warning the user when he/she changes the active layer to other than Layer0; Layer Tools which are a tool set used to create layers and make them all visible, invisible or reversed.

Layer0 Warning

I have taught SketchUp to a large number of students, mostly through my live courses, DVDs and book. Based on their feedback, and conversations I have had with other instructors, it is clear there are two dominant areas students struggle with.

1.    The stickiness of SketchUp is stumbling block number one. Anytime two primitives touch they become connected. This is useful if those primitives are meant to touch, such as when they are pieces of the same part. But if they are pieces of different parts this stickiness creates huge problems. The solution is for students to download and follow the Six Rules for Modeling in SketchUp. I have found that students who follow these rules, particularly Rule 4 – As soon as a part takes 3D shape make it a component – escape this problem entirely.

2.    The second largest stumbling block is the accidental or intentional violation of Rule 2 – Layer0 (Layer Zero) should always be active when modeling. To see the kind of havoc this can cause view the Primitives, Components & Layers tutorial. To help students avoid this problem I have added functionality to the Layers Manager tool which will warn of a Rule 2 violation.

view_menuThe image at right shows the View menu with Layer0 Warning shown enabled when checked.
The intent of Layer0 Warning is to let a beginner know when he/she is about to change from active Layer0 (Layer Zero) to another layer. By default Layer0 Warning is enabled the first time Layers Manager is installed. From then on the last state of Layer0 Warning will be stored upon closing SketchUp and recalled upon subsequently opening SketchUp.

If you wish to disable the warning go to menu View/Layer0 Warning and uncheck it.

If you wish to re-enable Layer0 Warning go to menu View/Layer0 Warning and check it.

When enabled Layer0 Warning will monitor the active layer; the layer with the radio button selected to the left of its name. If a layer other than Layer0 is made active, a warning message will appear.
The message will tell you which layer will become the active layer and also how to disable the warning. If a layer other than Layer0 is active and then Layer0 is made active, no warning is given because Layer0 is the desired layer for modeling. Note that this is just a warning; Layer0 Warning will not prohibit the layer change. The user must decide if this change was intentional or accidental. If the latter the user must manually change back to Layer0. Click OK to close the warning message box.

I should point out that I am an experienced SketchUp user and I never disable Layer0 Warning. It is too easy to accidentally change the active layer and get into serious modeling trouble.

Layers Tools

The Layers Manager has the following commands under the View menu:

  • Add Visible Layer
  • Add Invisible Layer
  • Show All Layers
  • Complement All Layers
  • Hide All Layers

In addition a Layer Tools toolbar is available under View/Toolbars and contains four icons which can be used instead of the menu items above. You make this toolbar visible by choosing View/Toolbars/Layer Tools. The toolbar looks as follows:


Description of Tools:

add_visible_layerAdd Visible Layer icon adds a visible layer to the current scene, but invisible to all existing and new scenes. Add Visible Layer always adds a layer to the Layers list but its Visible check box is unchecked in all scenes EXCEPT the scene that was active (scene tab is blue) when you added the layer. If there are no scenes, a layer is added and its Visible check box is CHECKED.

add_invisible_layerAdd Invisible Layer icon adds an invisible layer to all existing and new scenes. Add Invisible Layer always adds a layer to the Layers list but its Visible check box is unchecked in all scenes. If there are no scenes, a layer is added and its Visible check box is CHECKED.

show_all_layersShow All Layers icon makes all layers visible.

complement_all_layersComplement All Layers icon reverses the visibility of all layers except the active layer which should always be Layer0.

hide_all_layersHide All Layers icon makes all layers invisible except the active layer which should always be Layer0.

Leave a Reply