rich220 Posted August 3, 2010 Posted August 3, 2010 My simple lisp (Defun C:LSwt () (setq pt (getpoint "\nSelect the center point for the Light Switch Sym ")) (terpri) (Command "insert" "C:/light_Switch_Sym" pt "1" "1" ) (PRINC)) This Lisp works unless "near" is entered for the location of the "getpoint". When "near" is entered the block is placed at the nearest end point or midpoint, which ever was closest to the point picked. When I list pt (!pt) the values equal those of the point picked not where the block is placed. Please help, Rich220 Quote
lpseifert Posted August 3, 2010 Posted August 3, 2010 Probably your running snaps try this (Command "insert" "C:/light_Switch_Sym" "_non" pt "1" "1" ) Quote
Tharwat Posted August 3, 2010 Posted August 3, 2010 Use "_non" before the pt like this : (Command "_.-insert" "C:/light_Switch_Sym" "_non" pt "1" "1" ) Regards Tharwat Quote
rich220 Posted August 3, 2010 Author Posted August 3, 2010 Thank you very much that fixed it... Quote
Tharwat Posted August 3, 2010 Posted August 3, 2010 You're welcome. Welcome to CADTutor. Tharwat Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.