如何用c#判断实体类型?
www.dimcax.com
如何用c#判断实体类型?
获取一个选择集后,如何判断选择集中实体的类型?
请各位高手指教
dim ssobjs as acadselectionset
........此处为选择集赋值的代码,省略
if typeof ssobj(i) is acadline then
msgbox("line")
elseif typeof ssobj(i) is acadtext then
msgbox("text")
.....................
end if
也可以用objectname 属性来判断。这里是vb代码,自己转换下。
[此贴子已经被作者于
autocad批量打印高效解决方案——autowiseplot. /cn
关注!!!!!!!!!