本帖最后由 ssyfeng 于 2024-3-13 10:46 编辑
那个函数写的有问题,或者直接不要那个a函数
- (defun c:qw1 (/ a)
- (defun a( / P)
- (initget "Y N")
- (setq P (getkword "是否关联?[是(Y)/否(N)]<Y>:"))
- (if (or (equal p "Y") (= P nil)) (setq P "Y") (setq p "N"))
- )
- (command "arrayrect" (ssget) "" "c" (getint "\n行数:") (getint "\n列数:") "s" (getdist "\n每行间距:") (getdist "\n每列间距:") "AS" (a) "")
- (princ)
- )
- (defun c:qw1 ()
- (command "arrayrect" (ssget) "" "c" (getint "\n行数:") (getint "\n列数:") "s" (getdist "\n每行间距:") (getdist "\n每列间距:") "AS")
- (princ)
- )
|