1229| 10
|
[源码] 请求修改 |
100明经币
最佳答案;或者
(defun c:resetcolor (/ c)
(setq cmd (getvar "cmdecho"))
(setvar "cmdecho" 0)
(setq Document (vla-get-ActiveDocument (vlax-get-acad-object)))
(setq Blocks (vla-get-blocks Document))
(vla-StartUndoMark Document)
(setq c 8 )
(If (progn
(princ "\n请选择要更改颜色的图元:")
(setq ssa (ssget))
)
(vlax-for Obj (vla-get-ActiveSelectionSet Docume ...
| ||
| ||
| ||
| ||
| ||
点评
Command: v8
选择要修改颜色的对象:
Select objects: 1 found
Select objects: ; error: Automation Error. Calling method AddItems of
interface IAcadSelectionSet failed
大师!使用了一段时间了
有个问题,偶尔在用的时候就不能改颜色了,信息如下
Command: v8
选择要修改颜色的对象:
Select objects: 1 found
Select objects: ; error: Automation Error. Calling method AddItem
| ||
| ||
| ||
| ||