@TIG
Thanks for your input, even though I couldn't understand your script ๐ณ
But I managed to get it to work by using this:
page = model.pages.add newname
layers.each { |l| page.set_visibility(l, false)}
page.set_visibility(layer, true)
puts page.update(32)
page.use_axes = false
page.use_camera = false
page.use_hidden = false
page.use_hidden_layers = true
page.use_rendering_options = false
page.use_section_planes = false
page.use_shadow_info = false
page.use_style = false
It might not be beautifull, but it works ๐