pBe Posted December 21, 2011 Share Posted December 21, 2011 (edited) Same question as above...hot to set that point?? Flopo, if you run (_LowYcoord pointList) where any of the variables (sym) included on pointList evaluates to nil the result will be nil and not a point list. Make sure those vairables is a valid point list what you can do is (defun _LowYcoord (pointList) (car (vl-sort (vl-remove-if 'null (mapcar 'eval pointList)) '(lambda (a b) (< (cadr a) (cadr b))) ) ) ) that way you can maintain this line (setq pMin (_LowYcoord pointList)) and not rebuilding the list everytime to include only valid variables (setq pointList '(J1 J2 J3 J4)) (setq pointList '(J10 J11 J23 J4)) Edited December 21, 2011 by pBe Quote Link to comment Share on other sites More sharing options...
flopo Posted December 21, 2011 Author Share Posted December 21, 2011 Now is working!!! Thanks Pbe! Thanks guys! Quote Link to comment Share on other sites More sharing options...
pBe Posted December 21, 2011 Share Posted December 21, 2011 Now is working!!! Thanks Pbe! Thanks guys! Right on. kudos to the rest of the guys , they did all the work 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.