jonathann3891 Posted April 13, 2015 Posted April 13, 2015 This is a dwg_setup menu that I'm working on. For some reason if I delete the title block and run the command again, it will not hold the insertion point at 0,0. Why? (defun c:test () (if (= (getvar "Tilemode") 1)(setvar "Tilemode" 0)) (command "._insert" "TEST1" 0.0 "" "" "") );end if (princ) ) Quote
mostafa badran Posted April 13, 2015 Posted April 13, 2015 maybe. (defun c:test () (setvar "Tilemode" 0) (command "._insert" "TEST1" "0,0,0" "" "" "") (princ) ) Quote
jonathann3891 Posted April 13, 2015 Author Posted April 13, 2015 Thanks for the reply mostafa, that fixed it. I think I tried that, but without the quotation Quote
Lee Mac Posted April 13, 2015 Posted April 13, 2015 I would suggest: (command "_.-insert" "test1" "_s" 1.0 "_r" 0.0 "_non" '(0 0)) The "_non" (or "_none") command modifier will ensure any active Object Snap modes are ignored when supplying point input to a command through AutoLISP. Quote
mostafa badran Posted April 13, 2015 Posted April 13, 2015 Thanks for the reply mostafa, that fixed it. I think I tried that, but without the quotation You're welcome Quote
jonathann3891 Posted April 13, 2015 Author Posted April 13, 2015 on a side note, I was messing around with a macro *^C^C-INSERT;TEST1;;;; To specify 0,0,0 would it be this? *^C^C-INSERT;TEST1;0,0,0;; Quote
mostafa badran Posted April 13, 2015 Posted April 13, 2015 on a side note, I was messing around with a macro *^C^C-INSERT;TEST1;;;; To specify 0,0,0 would it be this? *^C^C-INSERT;TEST1;0,0,0;; Try this. *^C^C_insert;test1;0,0;1;1;0; 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.