i got some lisp to create box in mtext but what is happening after using the lisp the object snap modes in osnap setting become all unchecked...can u help me to repair this 'coz im not good in lisp programming. thanks in advance.
i got some lisp to create box in mtext but what is happening after using the lisp the object snap modes in osnap setting become all unchecked...can u help me to repair this 'coz im not good in lisp programming. thanks in advance.
It's setting the OSMODE to 32 (Intersection only) after it's saved OSMODE to a variable. Then after asking for the 2 points it resets OSMODE to the old value. Unfortunately it doesn't cater for the user pressing Esc during one of these getpoint lines. If you press Esc the entire function stops dead, thus the OSMODE is never set back. There are ways of fixing this using what's known as error handling.
I've made a quick fix in the LSP attached. See if this works.
Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!