Jump to content

Recommended Posts

Posted

Hi all,

 

How to I set a my variable dist to 200 inch? 

 

(setq dist 200")  ;;;;doesn't work

 

Please help

 

Posted

A variable is set to the value implied a real, integer or string so (setq dist 200) is just that 200 as a value, if you want it to be inches you need to work with all variable in same units, if you are calculating in feet then need to do (setq dist (/ 200 12.)) note the "." so get a real answer not an integer answer.

  • Like 1
  • Agree 1
Posted

This is the answer I need. Thank you BIGALL.

Posted

this is where getdist shines

 

(setq dist (getdist "\nEnter distance"))

 

you can enter 200, 200", 16'8", or pick points with a mouse.

  • Like 1
Posted

That works too. Thanks mhupp.

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...