# (getdist \[point\] \[prompt\]) [GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <!-- help-structure:notice --> > **Source status:** This source topic has 1 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md). <!-- /help-structure:notice --> <a id="186"></a> ## (getdist \[point\] \[prompt\]) --- Ask the user to specify two points. --- This function prompts the user to enter a distance, or to pick one or two points to specify the distance. The distance returned is a [real number](../../../Source%20Issues.md#issue-cd1bfdc1756ecfc1), regardless of the current distance format specified by the **Units** command. You can specify a *prompt* string to be displayed, asking the user for input. Another LISP expression cannot be entered in response to **getdist.** ### Examples The examples in this section demonstrate the two ways to use the **getdist** function. **Two-point method:** leave out the *point* argument. The [getpoint](%28getpoint%20-point-%20-prompt-%29.md) function prompts the user for two points. The prompt for the first point is specified by *prompt;* GstarCAD® prompts, "Second point:" for the second pick point. A guide line stretches from the first point to the target to visually help in picking the second point. | Code | Returns | | --- | --- | | (**getdist**) \[pick first point\] \[pick second point\] | no prompt Second point: 7.2 | | (**getdist** "Length of street: ") \[pick first point\] \[pick second point\] | Length of street: Second point: 10.5 | **One-point method:** include the *point* argument. The **getpoint** function prompts the user for one point. The prompt for the second point is specified by *prompt*. A guide line stretches from the first point to the target to visually help in picking the second point. | Code | Returns | | --- | --- | | (**getdist** '(7.0 2.0)) *\[pick point\]* | *no prompt* 5.3 | | (**getdist** '(3.0 2.0) "Length of pipe: ")) *\[pick point\]* | Length of pipe: 2.8 | **NOTE** For more information, see the [initget](%28initget%20-bits-%20-string-%29.md) function. **Tell me about...** [(getangle \[point\] \[prompt\])](%28getangle%20-point-%20-prompt-%29.md) [(getcorner point \[prompt\])](%28getcorner%20point%20-prompt-%29.md) [(getpoint \[point\] \[prompt\])](%28getpoint%20-point-%20-prompt-%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28getdist%20-point-%20-prompt-%29.md)