[Plugin] Default Layer | Tag Geometry
- 
 Great! Thanks! 
- 
 Here's v2.1 http://sketchucation.com/pluginstore?pln=default_layer_geometry It is further optimized by correcting a stupid typo  
- 
 Hi TIG, 
 when I try to use the script the following error appears in console (see below). I am using SU2018, and I note you have not listed it as supported.I believe line 88 should be self.zero( e.entities )rather than self.zero( e )Error: #<NoMethodError: undefined method each' for #<Sketchup::Group:0x0002850e51d778>> C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:69:inzero'
 C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:88:inblock in zero' C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:69:ineach'
 C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:69:inzero' C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:84:inblock in zero'
 C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:69:ineach' C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:69:inzero'
 C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:48:innew' C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/default_layer_geometry.rb:35:inblock in module:DefaultLayerGeometry'
 SketchUp:1:in `call'
- 
 I think you are correct. 
 Try changing that line as you indicated - it should then work with selected Groups...There are other newer and more compatible plugins, like my LayerWatcher, which do similar things and more besides... 
- 
 I've made v3.0 which is pretty much unchanged, except that in newer SketchUp versions it uses the word 'Tag' instead of 'Layer'... 
 https://sketchucation.com/pluginstore?pln=default_layer_geometry
- 
 Great plugin! Any way to also untag nested groups and components? So that only the "outer most" group/component has a tag? I think you mentioned that your LayerWatcher script did something similar but that seems to also explode those entities? Thanks! 
- 
 Why not edit the container and select-all, then run the tool to untag the selected contents. 
 The outermost container's tag should be unchanged by this...
Advertisement


 
                             
                             
                             
                             
                             
                             
                            