Disappearing Objects (Tip #2203) by Greg Silva is a set of command functions used to control the visibility of objects in a drawing. Inside AutoCAD, each drawing object has a visibility property that is either true or false. When false, the object is not visible. Greg's command functions take advantage of that property, and they are available after loading the LISP code. The command functions include CLR to set a currently visible object invisible, AO to turn all objects to visible, HMO to report the number of visible and invisible objects to the AutoCAD text screen and RO to reverse the visible and invisible flags so that all objects that were visible are now invisible and all previously invisible objects are now visible. It works just like magic! It's lots of fun to play with and is extremely useful when building a presentation around a complex electronic drawing. This program demonstrates the power of Visual LISP. |