I am trying to create construction drawings with ruby. I have created some scenes/pages and I want few of them (e.g. top_page) to show the hidden line (BackEdges) of the geometry. I haven’t came across any solution in the forum yet. Here is my code:
pages.selected_page = top_page model.rendering_options["DrawBackEdges"] = true model.rendering_options["RenderMode"] = 2 top_page.use_rendering_options = true top_page.update(127)
The result is as below. It didn’t stick after applying use_rendering_options and update() on top_page. The hidden lines disappeared and the scene reverted back to the original scene without BackEdges as soon as I selected another scene in Sketchup. Any idea?
EDIT: TLDR: page.update(127) doesn’t work as expected. Help!