Theodorus's tip allows you to lock or unlock all viewports with one quick command. Load the LISP file and start the command by entering LV at the Command line. The command will ask you if you want to lock the viewports, with a default answer of Yes. If you respond with Yes, every viewport in your drawing will be locked. If you respond with No, all viewports will be unlocked. This routine includes a good example of using a separate function where certain chunks of code must be called repetitively from different locations in the main function. Thanks, Theodorus. |