vl-prin1-to-string (vl-prin1-to-string data) 返回LISP数据的字符串表示形式,就好像它是由prin1函数输出的一样 vl-princ-to-string (vl-princ-to-string data) 返回LISP数据的字符串表示形式,就好像它是由princ函数输出的一样 vl-propagate (vl-propagate 'symbol) 将变量的值复制到所有打开的文档命名空间...
acet-ms-to-ps从模型空间单位转换实数值到图纸空间单位 acet-ps-to-ms从图纸空间单位转换实数值到模型空间单位 action_tile为某一对话框控件指定一个动作表达式,用户在对话框中选中这个控件时,就会执行该动作表达式 add_list在当前激活的对话框的列表框中增加一个字符串或修改其中的一个字符串 alert显示一个警告框...
(expt base power) Returns a number raised to a specified power ✓ ✓ ✓ -- ✓ (fix number) Returns the conversion of a real into the nearest smaller integer ✓ ✓ ✓ -- ✓ (float number) Returns the conversion of a number into a real ✓ ✓ ✓ -- ✓ (...
; Returns or outputs the current date and time ; bOutput = T - Output the string to the Command prompt ; bOutput = nil - Return a string in the MM/DD/YYYY HH:MM:SS format ; Usage: (CurDate T) ; Usage: (CurDate nil) (defun CurDate (bOuput / cdate_val YYYY M D HH MM SS...
AutoLISP语言的基本函数 10.4AutoLISP的基本函数 •本节主要介绍AutoLISP基本函数的功能及其使用方法,基本函数主要包括数值函数、赋值函数、求值函数与禁止求值函数,表处理函数、字符串处理函数、交互式输入函数和屏幕操作函数等,并针对所讲述的函数介绍一些程序设计的基本方法和技巧。• A.学习要求:了解函数的调用...
AbsadsallocandangleangtosappendapplyatomasciiassocatanAtofatoidistanceequalfixfloati flengthlistloadmembernilOpenorpireadrepeatreversesettypewhile2.setq函数 setq函数用 于给变量赋值其格式如下:setqnamevalueNamevalue…其中Name变量名Value赋予变 量的值赋予变量的值可以是任何表达式数字表达式字符串表达式或既含有字...
AUTOLISP 程序命令 1.+(加)返回所有数的和 2.–(减)将第一个数减去其他数的和并返回差值 3.*(乘)返回所有数的乘积 4./(除)将第一个数除以其他数的乘积并返回商 5.=(等于)比较参数是否相等 6./=(不等于)比较参数是否值不相等 7.<(小于)如果每个参数值都小于它右边的参数则返回T,否则返回nil 8.<...
例如 : (fix 3) returns 3 (fix 3.7) returns 3 47 (float 数 ) 这个函数返回 数转换为实型数的结果 . 数可以是整型或实型的 . 例如 : (float 3) returns 3.0 (float 3.75) returns 3.75 48 (foreach 名称 表 表达式 ...) 这个函数扫过整个 表 , 将表中每个元素依次赋给 名称 , 对于表中的...
16、68与+32767之间特殊范围: 若以 float 函数将其转为实数,则范围2的32次方, 介于-2147483648与+2147483647之间B.实数(Real): 如8.5,-17.456正常范围: 带有小数点的数,精度可达 14 位有效数字C.字符串(String): 如 "AutoCAD","123","Enter Real:","7.5",正常范围: 以双引号内夹字符为认定,字符数不受...
AutoCAD will interpret a space in the same way it interprets a carriage return. The T is a special AutoLisp symbol that means "true" it is used to allow spaces in string input. In fact, you can use any positive integer (such as 1) in place of T but the T symbol helps to make ...