Save As (exporting geometry)
-
As far as I know, the only way to export geometry from within a model is to first create a Component from a selection and then via the context-menu or the component browser, do a Save As.
Is there any reason why a Save As couldn't be done directly by right-mouse-clicking a Selection of geometry or right-mouse-clicking on a Group? In seems like a waste of time to have to create a "temporary" component so you export the geometry and then explode that component afterwards if that component isn't required in the model.
-
I'm pretty sure that could be written.
BTW, IM me when you get a chance. I want to run a new script by you that is in the works.
Todd
-
There is a SDK method ...Group.Save_As (or something similar). You could then group the geometry and 'export' if that way: exploding back to the original afterwards.
It would need a .dll of .so writing ? With it you could then export anything you wanted from inside a model - selected geometry, groups, components (add a component instance inside a temp group, explode the instance, save_as the group, erase the group...)... etc.
My C++ isn't up to doing it BUT it must be pretty easy for those that can...
. -
I'm also wishing we had a way to do this from a ruby script. The nearest I've come is to delete the entire model excpet for the comp instance to be saved, then save the model, and then restore the original using undo. Clumsy, but it works. CB.
-
It just needs someone to sort out a group.save_as using the SDK and then any geometry can be exported into separate file... Any takers ?
.
-
I also want a script to export dwg file with select entities.
Advertisement