Re: Export Selected Only DWG Export
-
Hi all,
This must have been answered somewhere but I've been kind of searching for years as to whether this is possible...Anyone seen a plug in?
Thanks!
- Rich
-
Select what you want to export from your model.
Invert the selection [there are plugins for this] - or use this snippet in the Ruby Console + <enter>.m=Sketchup.active_model m.start_operation('DWG_ss', true) ss = m.selection es = m.active_entities es.erase_entities(es.to_a - ss.to_a) m.definitions.purge_unused m.layers.purge_unused m.materials.purge_unused m.commit_operation
Immediately after that run the File > Export > DWG operation [with whatever Options you desire].
Then use the Edit > Undo menu item to step backwards to the point before you erased things.
The exported DWG will be OK, and the model should be back to where you started...
The DWG should not have unused things like blocks, layers etc...
Advertisement