Author Topic: Question of the day #1  (Read 2221 times)

0 Members and 1 Guest are viewing this topic.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Question of the day #1
« on: November 22, 2004, 07:22:57 AM »
If your program requires the user to input a distance, either on the command line or by picking points, what AutoLISP function would you use?

Provide an example:
TheSwamp.org  (serving the CAD community since 2003)

David Bethel

  • Swamp Rat
  • Posts: 656
Question of the day #1
« Reply #1 on: November 22, 2004, 08:00:46 AM »
Code: [Select]

(initget 1)
(setq wid (getdist "\nS-S Width:   "))


I see a lot of people using getreal.  (getdist) allows for input based on LUNITS settings.  -David
R12 Dos - A2K

CADaver

  • Guest
Question of the day #1
« Reply #2 on: November 22, 2004, 10:04:11 AM »
Quote from: David D Bethel
Code: [Select]

(initget 1)
(setq wid (getdist "\nS-S Width:   "))


I see a lot of people using getreal.  (getdist) allows for input based on LUNITS settings.  -David
(GETDIST also allows the user to "show" AutoCAD the distance by selecting points on the screen.