AutoCAD中的系统变量与环境变量

更新时间:2023-06-05 05:54:24 阅读: 评论:0

AutoCAD中的系统变量与环境变量维多利亚女王电影
AutoCAD 中的系统变量与环境变量(来⾃官⽅帮助⽂件)
About System and Environment Variables (AutoLISP)
(1)系统变量
AutoLISP applications can inspect and change the value of AutoCAD system variables with the getvar and tvar functions.
;;系统变量主要是涉及 AutoCAD 的。
The functions u a string to specify the variable name. The tvar function requires a cond argument that specifies the new value the system variable.
AutoCAD system variables accept and return various data types: integers, reals, strings, 2D points, and 3D points.
⼀般的系统变量的数据类型有:整数、浮点数(实数)、字符串、 2D 点和 3D点
限制英语Values supplied as arguments to t var must be of the expected type. If an invalid type is supplied, an AutoLISP error is generated.
tvar的参数必须是所能接受的数据类型
The following example code demonstrates how to get and t the value of the AutoCAD FILLETRAD system variable:
(if(<(getvar"filletrad")1)
(tvar"filletrad"1)
)
(2)环境变量
Additional functions, getenv and tenv, provide AutoLISP routines with access to the currently defined operating system environment variables. ;; 环境变量主要涉及操作系统的。两类变量并没有明显的分类依据(也许是我还没找到)。
梦想的力量
Unlike system variable names, environment variable names are ca specific. For example, MaxHatch and MAXHATCH are not the same. When using the tenvfunction, you always supply the new value as a string even if it might be a numeric value.
与系统变量不同,环境变量名是⼤⼩写敏感的,且其值总是字符串。
发言稿400字
Note that changes to ttings might not take effect until the next time AutoCAD is started.
对环境变量的设置,有可能不会⽴即⽣效,直到AutoCAD重启perfect的意思
The following example code demonstrates how to t the MaxHatch environment variable:
(tq curMaxHatch (getenv"MaxHatch"))
(prompt(strcat"\nCurrent value of MaxHatch: " curMaxHatch))
(tenv"MaxHatch""50000")
(prompt(strcat"\nNew value of MaxHatch: "(getenv"MaxHatch")))
(tenv"MaxHatch" curMaxHatch)
可使⽤下列⽅式进⾏环境设置:
witness
■如果使⽤命令⾏开关指定环境设置,命令⾏开关将替代在"选项"对话框或环境变量中指定的设置。
■如果未设定命令⾏开关,将使⽤"选项"对话框中设定的相应值。
■如果既没有设定命令⾏开关,也没有设定"选项"值,则使⽤环境变量值。
注意:命令⾏开关和环境变量只替代当前任务的"选项"对话框中设定的值。它们不会改变系统注册表。
薪酬管理作用
另外:据测试,⽤户可以增加任意名称的 “环境变量” ,数据应该是保存在注册表中(暂未找到官⽅⽂档说明),测试如下:国际英语音标表
$ (tenv "VS\\boxtext-off" (rtos pi 2 2))  ;; "3.14"
$ (getenv "VS\\boxtext-off")  ;;"3.14"
aerodrome>our怎么读

本文发布于:2023-06-05 05:54:24,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/868780.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:环境变量   开关   系统   命令   变量   设定   设置   选项
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图