Hidden Geometry status


#1

How can I obtain in ruby status of Hidden Geometry?
I can change it using:

Sketchup.send_action(‘viewShowHidden:’)

but I don’t have idea how to check if ShowHidden is on or off.


#2

Do a search in the Ruby API for “RenderingOptions”

puts Sketchup.active_model.rendering_options["DrawHidden"]


#3

Thanks Jim.


#4

Sure. You want to avoid using send_action where ever there is an equivalent Rendering Option.