GetDistance - PYTHON 不支持

暂停并等待用户输入一个距离。

语法

Rhino.GetDistance ([arrPoint [, dblDistance [, strMessage1 [, strMessage2]]]])

参数

arrPoint

可选参数。Array.A zero-based, one-dimensional array containing three numbers identifying the first distance point.

dblDistance

可选参数。Number.A default distance value.

strMessage1

可选参数。字符串。A prompt or message for the first distance point.

strMessage2

可选参数。字符串。A prompt or message for the second distance point.

返回值

Number

The distance input by the user if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim dblDistance

dblDistance = Rhino.GetDistance

If Not IsNull(dblDistance) Then

Rhino.Print "Distance:" & CStr(dblDistance)

End If

同见

GetAngle