用记事本打开你加载的.lsp文件,会出现以下类似的代码:3 x7 v& w8 @0 G p
(defun c:yj( )6 g1 D& n5 \8 m, t& W M
(setq ss (ssget '((0 . "line")))) }7 m9 I! u4 P" N: X' C2 D1 ?( G
(setq aa (getdist "请输入圆角半径:"))
& z0 d# d ]: ~1 z7 Z8 E+ } (setq ss1 (ssname ss 0))4 ], }$ ]( \9 B# S; W
(setq ss2 (ssname ss 1))
0 B R7 R) x/ E1 x: j (command "FILLET" "r" aa) O4 O5 Q3 b! o/ _
(command "FILLET" ss1 ss2)+ a' {, u( W6 g, c b0 Y
(command "FILLET" "r" 0.0)
. G6 K" L/ s. q N)! _' x# D( P. W& W. {- b6 _. q
一般第一行有(defun c:yj( )几个英文,C:后边的几个英文就是命令,9 q: v$ i- ]; o) y- W- P! @
如上述代码的命令就是yj,在CAD命令行输入即可。 |