duanuys Posted April 9, 2014 Share Posted April 9, 2014 Say this is my code: (defun c:test() (setq list(getpoint "\nChoose point here") ) When you click on your autocad drawing i know that it stores the coordinates in a x,y,z format in a list.. How can i extract those numbers? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted April 9, 2014 Share Posted April 9, 2014 Firstly be careful to use a function as a variable which would popup a warning message then a conflict may take a place . (setq p (getpoint "\n Specify point :")) (setq x (car p) y (cadr p) z (caddr p) ) Quote Link to comment Share on other sites More sharing options...
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.