修改: (defun c:t ( / ss len i blk) (if (setq ss (SSGET '((0 . "HATCH,dimension,INSERT"))));;选择对象这句有问题。SSGET怎么去VALAX-FOR?该怎么写,,CAD提示错误: 参数类型错误: VLA 对象集合: <Selection set: 1297> (progn (setq len (sslength ss) i 0) (repeat len (setq blk (ssname ss i)) ;还有些其它的操作 (vlex-ChangeAttributes (list blk (cons "tag1" "95959595"))) (setq i (1+ i)) );repeat ) );if ) |