Is it possible to copy entities to the clipboard so that they can be pasted in a new model? This is the scenario:
- I have a baseline model with some fixed entities (e.g. existing buildings). The user can add ‘additional’ entities to this baseline model to represent different scenarios (e.g. new buildings)
- Each time the user creates a new scenario he/she should re-start from the fixed baseline model. In order to do this I delete all the entities that have been added, save the model and create a new baseline model ready for modifications.
- I would like to copy the entities that are being removed to the clipboard so that the user can paste them in the newly created baseline model.
I have tried the following:
sel = Sketchup.active_model.selection sel.clear sel.add entities_to_be_removed Sketchup.send_action "copy:" remove_entities
The selection works correctly, but it seems that the clipboard is cleared when I switch to the new model.
Is this the case? Can you suggest an alternative? Thanks