I’m trying to create a plugin that does a context click on a group and sends it to a new instance of sketchup for editing (some editing done by code). i use the UI.savepanel to get the path and create the skp file and open it with the UI.openURL() or Sketchup.open_file(). how do i get a handle on the new model instance to continue with the code functionality.
the Sketchup.open_file() asks to save and closes my original model before i get to the new model instance
where the UI.openURL() does not ask to save nor closes the original model before opening the new instance.
it seems i can get a @second_model = Sketchup.active_model handle with the Sketchup.open_file() method.
Probably because it has to close the original model first.
but how to copy a group over to the new instance? any Suggestions?