alijahed Posted May 14, 2010 Posted May 14, 2010 Hi All, It is going well and I am so happy! Thanks for your help as another try, I wrote: (defun C:prac6 (/ a b) (setq a 1) (setq b 1) (if (= a b) ((command "_insert" "ssw1" '(0. 0. 0.) 1. 1. 0.))) (command "zoom" "e") ) and I get this error! Command: PRAC6 _insert Enter block name or [?] : ssw1 Units: Millimeters Conversion: 1.0000 Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: Enter X scale factor, specify opposite corner, or [Corner/XYZ] : 1.000000000000000 Enter Y scale factor : 1.000000000000000 Specify rotation angle : 0.000000000000000 Command: ; error: no function definition: nil what does it mean and how can I fix it? Cheers Ali Quote
alanjt Posted May 14, 2010 Posted May 14, 2010 No reason to start a new thread. You have too many parens around your insertion. eg. ((command "_insert" "ssw1" '(0. 0. 0.) 1. 1. 0.))) make: (command "_insert" "ssw1" '(0. 0. 0.) 1. 1. 0.)) Nice and clean: (defun C:prac6 (/ a b) (setq a 1) (setq b 1) (if (= a b) (command "_insert" "ssw1" '(0. 0. 0.) 1. 1. 0.) ) (command "zoom" "e") ) 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.