大家好,最近开始学习macro编程,但是手头没有相关的参考书,就照着help做一些test,下面是自己写的一个小
程序,创建一个箱体,然后通过bool运算给它一个开口以出射光。但是选择文件,并在command键入
mH Ic f{RG (creat_outbox 1550 2500 750 1450 2400) ,点击执行时出现
HRiL.DS *** ERROR *** edit:move: application of non-procedure: #[entity 1 3] :lB=Lr) 的错误。而且从tracepro的窗口看,箱体是建立起来了,但是没有移动
}RHn)}+ (define creat_outbox
m9" n4a|: (lambda (x_width y_length z_height x_out y_out)
}z\_;\7 (define outbox (insert:block x_width y_length z_height))
QAvir%Y9Q (edit:move (outbox) 0 0 130 ) ;help 中语法形式 VJdIHsI
(define outputface (insert:block x_out y_out 10))
A-4h (edit:move (outputface) 0 0 505) ;help 中语法形式 bzX\IrJpOZ
(define
t?9v^vFR outter (bool:subtract outbox outputface))
O
[i#9) ))
SzUpWy& ;(creat_outbox 1550 2500 750 1450 2400)
6`]$qSTS +m8!U=Zi 如果我按照example中“Toroidal_Mirror.scm”的edit:move语句写程序(如下)就可以正确运行,
G8r``{C! (define creat_outbox
zipS
]YD (lambda (x_width y_length z_height x_out y_out)
(N&lHLy (define outbox (insert:block x_width y_length z_height))
'Y56+P\u (define outbox (edit:move outbox 0 0 130)) <^zHE=h"
(define outputface (insert:block x_out y_out 10))
9G+V;0Q (define outputface (edit:move outputface 0 0 505)) qIY~dQ|
(define
DdVF, outter (bool:subtract outbox outputface))
Gm(b/qDDe ))
Xtp"QY
p 'ow.=1N- 想请教下其中错误的原因 );Z1a&K5k M-[$L XR help中edit:move的
实例为
%,Ap7X3:QT J2j U4mR Y=?yhAw /)dFK~ f-5:wM& mZx&Xez_G
u$-U*r