blockreference这种类型的对象不能用选择集获取吗?
www.dimcax.com
blockreference这种类型的对象不能用选择集获取吗?
typedvalue[] firstvalue = new typedvalue[] { new typedvalue(0,"blockreference"), };
selectionfilter filter = new selectionfilter(firstvalue);
promptselectionresult resselectopt = ed.selectall(filter);
这种方法为什么没用,谁能告诉一下我,谢谢!如果有方法解决麻烦给个例子,谢谢!
firstvalue = new typedvalue[] { new typedvalue(0,"blockreference"), }
blockreference改为insert;
下面的才用的是 blockreference(单选实体);
promptentityoptions pe = new promptentityoptions("\n选择块");
pe.setrejectmessage("\n警告:只能选择块");
pe.addallowedclass(typeof(blockreference), true);
promptentityresult pr = ed.getentity(pe);
最后,能不能大家粘贴代码的时候先到记事本再过来,因为源码在html中会被程序自动翻译成 (空格); <p>(回车),看着别扭啊<br>
typedvalue[] firstvalue = new typedvalue[] { new typedvalue(0,"blockreference"), }
blockreference改为insert;
下面的才用的是 blockreference(单选实体);
promptentityoptions pe = new promptentityoptions("\n选择块");
pe.setrejectmessage("\n警告:只能选择块");
pe.addallowedclass(typeof(blockreference), true);
promptentityresult pr = ed.getentity(pe);
呵呵,谢谢上面那位朋友了,下次一定先转到记事本再贴过来,!
呵呵,谢谢上面那位朋友了,下次一定先转到记事本再贴过来,! xu_
不用了,是论坛升级的问题。现在已经改好了
c#最适合开发autocad,因为它拥有vb容易的特点,却具有vc++的强大功能。
楼主:你将blockreference改用insert看看好使不?
学问必须合乎自己的兴趣,方才可以得益。
谢谢各位朋友的热心帮助!