hi, i need to generate one separated file for each layer of a drawing. the files will be batch imported into lumion to make a render (not too relevant but fyi, each file will correspond to a different layer in lumion, and i could play with turning on/off the layers during the animation). i was trying to use the old extension “TIG_export_SKP_by_layer_2.1”, whose purpose is exactly what i need. but unfortunately it does not work. any idea to make that in most automatic way possible? perhaps another new plugin? the alternative, to generate one file for each layer manually, is a lot of effort.
I have now installed and tested the extension TIG_export_SKP_by_layer in SketchUp 2022 and it works. Why do you say it doesn’t work, and what exactly does ‘not work’ mean to you?
When you have questions about his extensions, @TIG can be best contacted through his estensions’ threads in the SketchUcation forum.
I am here now, but because the info is not there I can’t help - it works as it should…
hi, thanks for the answer.
thanks TIG for the tool also.
yes, i was not very specific. the setup is:
- windows 10, skechup 2023 pro
- TIG-export_SKU_by_layer 2.1
- 22 MB file, 14 tags
the error is:
Error: #<TypeError: reference to deleted Layer>
C:/Users/g/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:156:in name' C:/Users/g/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:156:in
block in export_SKP_by_layer’
C:/Users/g/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:103:in each' C:/Users/g/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/TIG-export_SKP_by_layer.rb:103:in
export_SKP_by_layer’
additional comments:
-
i think error is because an object belongs to a layer X, and then this object is in a group than also belongs to layer X. it is easy to get this kind of incongruence, at least for me, when working with big drawings.
-
i was making a new version based on your logic and it seems to work correctly, but i did not test so much. the biggest difference with yours is that shows more info in the console about the different steps (making the folders, deleting entities, etc.) (atached file)
export_by_layer_0.0.5.txt (8.7 KB)