![]() |
【转帖】[求助]在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. |