Jump to content

Recommended Posts

Posted

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.

Posted

(while (not (> cone-radious (setq radious (getdist cone-apex " \n>>>...radious from apex...>>>: "))))

(princ "\n>>>...Pick only inside the cone base...

)

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...