删除文字样式是这样咋不行呢!
请问删除文字样式用下面的代码不行,有人知道吗?请帮忙指导,谢谢!(vla-delete (vla-item (vla-get-textstyle (vla-get-activedocument
(vlax-get-acad-object))) "Annotative")) 看起来好像行,关键是有名叫Annotative的文字样式? vla-get-textstyle 改成 vla-get-textstyles 首先要确认图中没有文字使用这个样式。 谢谢!我改成这样就可以了!
(if (tblsearch "style" "Annotative");删除文字式样Annotative
(vla-delete (vla-item (vla-get-textstyles (vla-get-activedocument
(vlax-get-acad-object))) "Annotative"))
)
页:
[1]