|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 zuoyemoming 于 2010-1-18 13:52 编辑
" _! P% ~; i+ `* x$ ]% N8 _8 H; Z8 ^
为什么我照着教程编写的LSP程序,老是提示输入中的点位置不正确。
+ G3 n6 v. ?3 x5 M" Q这个是照着教程自己写的源码:
6 D! `) t) _. n0 l+ c% p; B;this program will prompt you to enter three points , w) P7 ~, W1 M8 F
;of a triangle from the keyboard ,or select three points
, m j! o6 g, C; {;by using the screen cursor .P1,P2,P3 are triangle corners4 k/ ^& m4 d) n
7 ]$ V6 b+ M% r, d
(defun: C:triang1()
# r- { |6 P- J (setq p1(getPoint“\n Enter first Point of triangle:”))6 T# e' c8 U+ C4 l) x
(setq p2(getPoint“\n Enter second Point of triangle:”))9 Y8 h5 P. J8 ]0 M6 U; a
(setq p3(getPoint“\n Enter third Point of triangle:”)). K+ }2 I) ~5 c5 Z: g/ p6 I
(Command“line” p1 p2 p3“C”)
6 i& V( M; z, a0 D# ?( h, E5 D)' U u! ]3 L5 T3 D* D, W
教程为下面的图片 |
|