[新手求助]怎样在VBA中判断图形被选中!
怎样在VBA中判断图形被选中,如直线,长方形,等是否被选中.先谢谢各位了. 大家帮帮忙撒highlight显示
谢谢版主,看了一下,但是不知道怎么用呢?怎么判断直线是被选中状态?拜求
用objectname判断 可否给段示例代码呢?麻烦
if ppentity.objectname="acdbline" then
msgbox "直线选中"
ppentity.color=acred '改变COLOR
end if
alin说得对,可以highlight显示。
AcadEntity.Highlight(True)
object.Highlight HighlightFlag
Object
, , ,
The object or objects this method applies to.
HighlightFlag
Boolean; input-only
TRUE: The object is highlighted.
FALSE: The existing highlight is removed from the object.
Remarks
Once the highlight flag for an object has been set, a call to theormethod is required to view the change.
Note that this function does not return the current highlight status of an object.
可以看出highlight不行的
vba 好像实现不了这个
页:
[1]