几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】[求助]在c#中,已知图块名称,如何快速找到指定图块? (http://www.dimcax.com/hust/showthread.php?t=9150)

yang686526 2009-04-20 04:09 PM

【转帖】[求助]在c#中,已知图块名称,如何快速找到指定图块?
 
[求助]在c#中,已知图块名称,如何快速找到指定图块?
www.dimcax.com
[求助]在c#中,已知图块名称,如何快速找到指定图块?如题,我想找到指定的图块,图块名我已经知道了,关键是如果快速找到它。我试过用selectionset,但在运行中出现错误。哪位达人指点一下:
//最后一关:如何快速找到指定图块?
acadselectionset acadselset = doc.selectionsets.add("findborder");
int[] filtertype = new int[] { 0, 2 };
object [] filterdata = new object [] { "intsert", "border" };
acadselset.select(acselect.acselectionsetall, new double [] {0,0} , new double [] {0,0}, filtertype, filterdata); //在这儿出错
能不能帮忙看一下,多谢
acadselset.select(acselect.acselectionsetall, new double [] {0,0} , new double [] {0,0}, filtertype, filterdata);
你试着将上句中的两处new double [] {0,0} 改为 new point2d(0,0)试试
int[] filtertype = new int[] { 0, 2 };错
改为:
short[] filtertype = new short[] { 0, 2 };

点应该是:
new double [] {0,0,0}


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