明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: nabworm

[Vlisp]解惑求助:一个手动选取坐标点(Getpoint)的问题

  [复制链接]
发表于 2006-8-3 18:11:00 | 显示全部楼层
DIMZIN设置成0时保留数字尾部的零;设置成8时舍去尾部的零。
发表于 2006-8-3 18:24:00 | 显示全部楼层

DIMTZIN System Variable

Type: Integer
Saved in: Drawing
Initial value: 0

Controls the suppression of zeros in tolerance values.
DIMTZIN stores this value when you enter it on the command line
or set it under Primary Units in the Annotation dialog box.
DIMTZIN values 0–3 affect feet-and-inch dimensions only.


0 Suppresses zero feet and precisely zero inches

1 Includes zero feet and precisely zero inches

2 Includes zero feet and suppresses zero inches

3 Includes zero inches and suppresses zero feet

4 Suppresses leading zeros in decimal dimensions (for example, 0.5000 becomes .5000)

8 Suppresses trailing zeros in decimal dimensions (for example, 12.5000 becomes 12.5)

12 Suppresses both leading and trailing zeros (for example, 0.5000 becomes .5)

发表于 2006-8-3 19:58:00 | 显示全部楼层

我一直以为rtos的输出结果只跟函数后面指定的模式和精度有关,没想到不是这样。是我太想当然了。受教了

(rtos number [mode [precision]])

The rtos function returns a string that is the representation of number according to the settings of mode, precision, and the system variables UNITMODE, DIMZIN, LUNITS, and LUPREC.

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-6-21 16:12 , Processed in 0.167058 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表