|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 zuoyemoming 于 2010-1-18 13:52 编辑 7 D& T# Q- V8 @0 S: s
2 x+ @' p$ U2 z
为什么我照着教程编写的LSP程序,老是提示输入中的点位置不正确。
D( ~# ~" `5 G3 y1 G' S0 @这个是照着教程自己写的源码:
4 w& j: | D- P* X0 n;this program will prompt you to enter three points
4 y( E# s* X8 D/ J/ _" _, Q;of a triangle from the keyboard ,or select three points
' q& A" f; z$ A;by using the screen cursor .P1,P2,P3 are triangle corners
$ g: [3 c0 ~( z% Q' i ?3 q% G4 o5 R/ P) K1 H- A7 `: x
(defun: C:triang1()0 D4 B; f9 E4 {. p* q/ g
(setq p1(getPoint“\n Enter first Point of triangle:”))" j% M1 D. b& B; {; e; t) u& x
(setq p2(getPoint“\n Enter second Point of triangle:”))
/ r, {/ e2 G5 [7 o (setq p3(getPoint“\n Enter third Point of triangle:”))
( k& M/ q" I8 ]( r. [, V (Command“line” p1 p2 p3“C”)- p2 b3 s' J: x9 Y, C8 n, t
)
0 U2 [5 o0 u2 V; v教程为下面的图片 |
|