devitg Posted November 20, 2008 Posted November 20, 2008 Normally I had work in lisp with fixed data , or a few USER´s Input. Now I want to do things better. From previous line I get a Variable with value (setq cone-radious ( / perimeter pi 2)) Now I have to ask the user to pick a distance INSIDE de Cone-base, from the cone-base center , so I want to check if user pick outside the cone base, so the radious shall be I make a intent , but it do not work (while (> cone-radious (setq radious (getdist cone-apex " radious from apex")))) I know it is a simple question , not to say it is almost STUPID , but I can not solve it. Thank in advance Gabriel. Quote
wizman Posted November 20, 2008 Posted November 20, 2008 (while (not (> cone-radious (setq radious (getdist cone-apex " \n>>>...radious from apex...>>>: ")))) (princ "\n>>>...Pick only inside the cone base... ) Quote
devitg Posted November 20, 2008 Author Posted November 20, 2008 Hi Wizman, sad to say it do not work Maybe I{m doing some thing wrong . I need to do a enter to get out the while , and neither if I pick inside or out side it work. It work good , it was my mistake , I was on a 3d mode , and cursor change z , so I can never get a distance in the correct plane .thanks Quote
devitg Posted November 20, 2008 Author Posted November 20, 2008 Please see my edited post. Thanks. 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.