zkz 发表于 2008-10-18 11:46

选择设置

不知作了什么操作  在CAD中选择后没有变成虚线  只显夹点  要怎么设置回来啊 谢谢

[ 本帖最后由 zkz 于 2008-10-18 11:58 编辑 ]

cad 发表于 2008-10-18 13:27

看看这个帖子:http://www.askcad.com/bbs/viewthread.php?tid=14964

xu25355 发表于 2008-10-18 13:48

版主真是牛人:) :)

liuyu0125 发表于 2008-10-18 20:32

呵呵~~我能理解,我以前也这样~~

zkz 发表于 2008-10-20 15:39

太感谢了  :)

huyangyun 发表于 2008-10-23 16:18

帮忙查一下错,谢谢

这是我编的lisp语言,在cad中运行有错误,帮忙查一下。谢谢!
(defun part1(x0 y0)
(setq d1(getint"\nEnter diameter d1:")
       d2(getint"\nEnter diameter d2:")
       w(getint"\nEnter length w:")
)
(setq r1(/ d1 2.0) r2(/ d2 2.0))
(command"limits"(list 0 0)(list (+ x0 r2 100) (+ y0 W 100)))
(command"zoom" "a")
(command"layer" "s" "0" " ")
(command"line" (list(- x0 r1) y0) (list(- x0 r2) y0) (list(- x0 r2)    (+y0 w))(list(- x0 r1) (+ y0 w))"c")
(command"mirror" "w"(list 0 (- y0 5)) (list (- x0 r2 5) (+ y0 w 5))" "(list x0 y0) (list x0 (+ y0 w)) "n")
(command "layer" "s" "2" " " )
(command "hatch" "u" "45" "4" "n" "w" (list(- x0 r2 5) (- y0 5)) (list(+ x0 r2 5) (+ y0 w 5)) " ")
(command "layer" "s" "0" " ")
(command "line" (list(- x0 r1) (+ y0 w)) (list(+ x0 r1) (+y0 w)) " ")
(command "line" (list(- x0 r1) y0) (list(+ x0 r1) y0 ) " ")
(command "layer" "s" "4" " ")
(command "line" (list( x0 (-y0 5)) (list x0 (+y0 5) " ")
(command "layer" "s" "2" " ")
(setq d1 (itoa d1) d2(itoa d2))
(setq d1 (strcat "%%C" d1) d2(strcat "%%C" d2))
(command "dim")
(command "hor" (list (- x0 r1) y0) (list (+ x0 r1) y0) (list x0 (- y0 15)) d1)
(command "hor" (list (- x0 r2) y0) (list (+ x0 r2) y0) (list x0 (- y0 25)) d2)
(command "hor" (list (- x0 r2) (+y0 w)) (list (- x0 r2) (+ y0 w)) (list x0 (- y0 15)) w)
(command "exit")
)
页: [1]
查看完整版本: 选择设置