PDA

View Full Version : Erase unwanted drawings



sony007
2015-01-28, 06:21 PM
Hi dear members,
I am looking any help to develop a lisp routine ...(am not expert in lisp)
First i will explain what am looking..

I have more than 50 files of shop drawings
In that each file's paper space 8/10 formatted drawings are there (8/10 viewports)
but in model space so many unwanted dwg's are there
so i need to delete that dwgs (non formatted)



Is it possible with a lisp?...To create viewports lines ( closed rectangle) in model space with a layer (layer name -- Tmp),
keep all the objects which are inside and touching that rectangle,delete all other objects in model space,
after delete the rectangles which created at first(layer name -- Tmp), and purge it .

Thanks in advance for your consideration..

Sony..

Tom Beauford
2015-01-28, 09:45 PM
How do you have more than one drawing in a drawing? I use vp-outline.LSP Creates a polyline in modelspace that has the outline of the selected viewport. I've used it to trim drawing objects that are not visible in my layouts. Get it at: http://www.jtbworld.com/lisp.htm