sanjeeve Posted December 7, 2014 Share Posted December 7, 2014 Hi anybody can help me to write a lisp I have to pick the number in the drawing and subtract the number which I have entered using keyboard then it has to display the value in the screen. Quote Link to comment Share on other sites More sharing options...
paulmcz Posted December 7, 2014 Share Posted December 7, 2014 Where did you get stuck? What do you have so far? What specifically you need help with? This should be pretty easy. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted December 7, 2014 Share Posted December 7, 2014 Try this (setq en1 (entget (car (entsel "\nSelect first text number:" )))) (setq val1 (atof (cdr (assoc 1 en1)))) (setq val2 (getreal "\nEnter value")) (alert (strcat "Answer is " (rtos (- val1 val2) 2 3))) 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.