|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 zuoyemoming 于 2010-1-18 13:52 编辑 6 Y# S R4 k, v6 [
4 D/ s, D- ^( ]; C' `" _5 M
为什么我照着教程编写的LSP程序,老是提示输入中的点位置不正确。
4 ]: a8 W/ X9 ?/ E这个是照着教程自己写的源码:
6 L6 X0 G- v! k ~* f# e;this program will prompt you to enter three points
! d; T: Z& h0 v. C;of a triangle from the keyboard ,or select three points
9 f5 V/ p% H u' C+ T+ O;by using the screen cursor .P1,P2,P3 are triangle corners
. z. K3 |% a8 I0 l( f& }6 e9 M. u6 w
(defun: C:triang1()
! a- i: Y) d% [: g8 t& n (setq p1(getPoint“\n Enter first Point of triangle:”))8 A. V9 V+ S$ O8 P0 n
(setq p2(getPoint“\n Enter second Point of triangle:”))
* I* X8 t. d* _ s i% d (setq p3(getPoint“\n Enter third Point of triangle:”))
) u/ x& [+ R1 [ (Command“line” p1 p2 p3“C”)
* }0 M1 Z& p, K0 J% F)
; o1 T+ D9 @% x* W! w教程为下面的图片 |
|