在写一个旋转复制的命令,复制出来的对象如何让程序能获得呢. 我想过原理,可以让程序找到x与y的坐标全选再R移除p上次选择,可是由于ss边上如果有别的东西不在选择集里,如此框选会误选到不要的图元,行不通哇! (defun c:rcc () (setvar "cmdecho" 0) (command "undo" "be") (setq os (getvar "osmode")) (setq om (getvar "orthomode")) (setvar "orthomode" 0) (prompt "Copy and Rotate") (setq ss (ssget)) (if (not(tblsearch "layer" "8")) (command "layer" "new" "8" "set" "8" "c" "8" "8" "lt" "hidden" "8" "") ) (if ss (progn (setq dian (getpoint "\nPick Bese point")) (command "copy" ss "" dian dian) (command "rotate" ss "" dian pause) ;这里的ss不是想要的对象,应将copy后的新图元进入选择集 (command "chprop" ss "" "la" "8" "c" "bylayer" "lt" "bylayer" "") ) ) ) |