Hurricane Tutorials are now online!
FAQ Index

How do I erase everything outside the drawing limits?


Here is an example script that will erase everything outside the drawings limits...
First it uses the ERASE command, and selects ALL.

Then while the ERASE command is still invoked, is uses the R for REMOVE, then uses the W for WINDOW, the supplies the Max limit value, and the Min limit values, whereby selecting everything inside the window (limits) and removing them from the selection set.

The command is concluded and the remaining items are erased.

;START
ERASE ALL
R
W
(GETVAR "LIMMAX") (GETVAR "LIMMIN")

;DONE


Previous Back to Hurricane for AutoCAD - FAQ Next