几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   【转帖】blockreference这种类型的对象不能用选择集获取吗? (http://www.dimcax.com/hust/showthread.php?t=8791)

yang686526 2009-04-19 10:31 PM

【转帖】blockreference这种类型的对象不能用选择集获取吗?
 
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中会被程序自动翻译成&nbsp(空格); <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看看好使不?
学问必须合乎自己的兴趣,方才可以得益。
谢谢各位朋友的热心帮助!


所有的时间均为北京时间。 现在的时间是 11:07 AM.