各位大侠: 我找了一个计算相同块数量的程序,但是我想在计算后能够把统计的块同时选择上,请问该加一句什么呢?谢谢各位大侠了。。 程序如下: (defun c:CalBlk( / ent ents blkname) (setq ent (car (entsel))) (if ent (progn (setq ents (entget ent)) (if (= (cdr (assoc 0 ents)) "INSERT") (progn (setq blkname (cdr (assoc 2 ents))) (princ (strcat "\n块名:" blkname "," "数量:")) (princ (sslength (ssget "x" (list '(0 . "INSERT") (cons 2 blkname))))) ) ) ) ) (princ) ) (prompt "Enter CALBLK to launch the program!") |