
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to erase all text objects and all the block objects from a drawing then purge all unused layers from the drawing. I have named filters set up to select the objects I need.
(defun C:CleanDXF ()
(command "erase" "window" "607.454,4976.357" "613.677,4997.599" "") ;erases an unneeded legend
(command "zoom" "e") ;zoom to fit all objects into the window
(command "filter" "window" "0,0" "9999999,9999999" "" "erase" "" ;if I close the routine before the "" here it works
"filter" "window" "0,0" "9999999,9999999" "" "erase" "") ;Adding the second filter command breaks it
);defun
Here is the command history from when I run the routine.
Command: CLEANDXF
erase
Select objects: window
Specify first corner: 607.454,4976.357 Specify opposite corner: 613.677,4997.599 0 found
Select objects:
Command: zoom
Specify corner of window, enter a scale factor (nX or nXP), or
[All/Center/Dynamic/Extents/Previous/Scale/Window/Object] : e
Command: filter Applying filter to selection.
Select objects: window
Specify first corner: 0,0 Specify opposite corner: 9999999,9999999 12 found
Select objects: Exiting filtered selection.
Command: erase
Select objects:
Command: filter Applying filter to selection.
Select objects: window
Specify first corner: 0,0 Specify opposite corner: 9999999,9999999 12 found
Select objects: Exiting filtered selection.
Command: erase
Select objects:
Command: nil
Is there a way to automate the named filter selection?
Why is erase not seeing the selected objects?
What can I do to fix this routine?
Solved! Go to Solution.