我家中电脑没有安装CAD,大概代码如下: '创建一个函数,用于判断图元是否在选择集外 Public Function pOutSelSet(byval pEnt as acadentity,byval pSelSet as acadselectionset) as boolean '初始化函数 pOutSelSet=True dim oEnt as acadentity for each oEnt in pSelSet if pEnt.handle=oEnt.handle then pOutSelSet=False exit for else pOutSelSet=True end if next pEnt end function 在程序中调用此函数即可。 |