
lisp
pilifeng1
这个作者很懒,什么都没留下…
展开
-
lisp中的progn函数详细解读
A better way to understand what progn is is by comparing it to the family: prog1 and prog2. The n or 1 or 2 part of the name stands for the statement from the list whose result you are interested in. ...转载 2018-08-18 11:13:00 · 2930 阅读 · 0 评论 -
DIESEL编程举例
DIESEL Programming ExamplesZ=0Asks for a point, then moves this point to the X/Y plane by setting Z to zero.[Z=0]^C^C_setvar;osmode;0;_id;\+_stretch;_c;+$M=$(-,$(index,0,$(getvar,lastpoint)),...转载 2018-09-03 09:48:40 · 2415 阅读 · 0 评论 -
一些有用的DIESEL宏
Some useful DIESEL macrosYou may add talking menu labels to your pull-down menus. Then you can easily see the necessary settings without having to call the appropiate commands. Here's an example:...转载 2018-09-03 09:47:13 · 429 阅读 · 0 评论 -
DIESEL for LISPers
DIESEL for LISPersHere are some useful routines to receive nicely formatted dates and times in AutoLISP. Each function takes a system variable name as its argument. Valid arguments are the variables...转载 2018-09-03 09:45:44 · 229 阅读 · 0 评论 -
autocad中的diesel语言详解
Diesel,Rudolf,1858-1913,德国工程师,所谓的DIESEL的发明者。 “Dumb Interpretively Evaluated String Expression Language”的缩写,AutoCAD和AutoCAD LT中的简单编程语言AutoCAD附带了大量API(应用程序编程接口),可以使用LISP,VBA或C ++等语言构建自定义环境。在AutoCAD的第1...翻译 2018-09-03 09:44:28 · 6279 阅读 · 1 评论 -
如何查看完整的AutoCAD系统变量列表
如果要在AutoCAD中进行一些自定义,则更改某些系统变量是不可避免的。我不擅长自定义。因此,拥有系统变量列表非常有用。我知道有一些网站提供此列表。但其中一些是旧版AutoCAD,某些系统变量可能已被删除,有些可能已经改变了。如果您使用旧版本的AutoCAD,它可能甚至还不存在。我们可以尝试查看AutoCAD? 系统变量是控制某些命令如何工作的设置。命令通常启动活动或打开对话框,而系统...原创 2018-08-29 11:06:17 · 3268 阅读 · 0 评论 -
lisp自求值
1. Common Lisp语言处理器分两部分——Reader和Evaluator Reader:字符串转化为S-表达式Evaluator:S-表达式转化为Lisp形式 S-表达式:列表和原子原子:1)number2)string literal以上自求值3)symbol:求值为所代表的对象,T和NIL自求值,:开头的关键字符号自求值*var*:全局变量+var+:...转载 2018-08-24 10:10:42 · 288 阅读 · 0 评论 -
lisp的基础规则表达式(原子表达式和列表表达式)的应用
2.1 形式 (Form)人可以通过实践来学习一件事,这对于 Lisp 来说特别有效,因为 Lisp 是一门交互式的语言。任何 Lisp 系统都含有一个交互式的前端,叫做顶层(toplevel)。你在顶层输入 Lisp 表达式,而系统会显示它们的值。Lisp 通常会打印一个提示符告诉你,它正在等待你的输入。许多 Common Lisp 的实现用 > 作为顶层提示符。本书也沿用这个符号...转载 2018-08-18 13:31:10 · 4039 阅读 · 0 评论 -
lisp表达式
每个Lisp表达式会返回一个值,一个函数总是返回最后一个表达式的结果——即使是NIL,NULL在Java或C++中的对等值也是这样。因此在Lisp中显示“Hello World”相当简单:[3]> "Hello World""Hello World"如果你希望在屏幕上打印一些内容,并返回其它内容,你应该使用打印函数:[4]> (print "Hello World")...转载 2018-08-18 13:20:28 · 1409 阅读 · 0 评论 -
lisp中的cond函数解读
condThe version of triangle-recursively described earlier is written with the if special form. It can also be written using another special form called cond. The name of the special form cond is an...转载 2018-08-18 11:14:21 · 3758 阅读 · 0 评论 -
cad diesel表达式实例
I am trying to automate a sheet tag with a Diesel expression in AutoCad.This gets me the twelfth character in the drawing name. But as soon as I get to sheet 10 this will say its sheet 0.$(substr,...原创 2019-04-17 22:36:26 · 4092 阅读 · 2 评论