| 定义函数 支持的平台:视窗和 Mac OS 签名(defun sym ([arguments] [/ variables ...]) expr ...) 
 返回值最后一个表达式的计算结果。 谨慎:切勿将内置函数或符号的名称用于sym参数。这将覆盖原始定义,并使内置函数或符号无法访问。若要获取内置函数和以前定义的函数的列表,请使用函数。defunatoms-family 言论如果未声明任何参数或局部符号,则必须在函数名称后提供一组空括号。 如果指定了重复的参数或符号名称,AutoLISP 将使用每个名称的第一个匹配项,并忽略以下匹配项。 例子(defun myfunc (x y) ...) Function takes two arguments (defun myfunc (/ a b) ...) Function has two local variables (defun myfunc (x / temp) ...) One argument, one local variable (defun myfunc () ...) No arguments or local variables | 
 |Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-10-31 10:49
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.