getdist (AutoLISP)
暂停用户输入距离 支持的平台:Windows、Mac OS 和 Web 签名(getdist [pt] [msg])
返回值类型:真实或无 一个数值。如果提供了 3D 点,则返回的值为 3D 距离。但是,设置函数的 64 位会指示忽略 3D 点的 Z 分量并返回 2D 距离。initgetgetdist 言论用户可以通过选择两个点来指定距离,或者如果提供了基点,则只需指定第二个点。用户还可以通过在 AutoCAD 当前距离单位格式中输入数字来指定距离。尽管当前的距离单位格式可能以英尺和英寸为单位(架构),但该函数始终将距离作为实数返回。getdist 该函数从第一个点到当前十字准线位置绘制一条橡皮筋线,以帮助用户可视化距离。getdist 用户不能输入另一个 AutoLISP 表达式来响应请求。getdist 例子(setq dist (getdist)) (setq dist (getdist '(1.0 3.5))) (setq dist (getdist "How far ")) (setq dist (getdist '(1.0 3.5) "How far? ")) 相关概念 |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-14 05:39
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.