Now all that aside. Your going about this the “hard way”. What we do is, make the objects components.
The assembly would be associated with an assembly layer. Then switch off that layer when making the scenes.
Then insert new instances off to the side somewhere aligned with the global axes. (Actually they can be inserted at the ORIGIN
if they’ll all be associated with a unique layer that is only on for one scene page.)
Then just use the standard Top, Side, Front, etc. views to set up scenes. You can associate the second instances each with a layer of it’s own.
See the Sketchup::send_action()
method for using the standard views:
Module: Sketchup — SketchUp Ruby API Documentation
If doing this by code, you’ll need to temporarily set scene transitions off, and use a FrameChange or View observer to know when the view is ready to be updated, ie, calling view.update()
.