几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】filteronlyselect problem with version 1.14 (http://www.dimcax.com/hust/showthread.php?t=16312)

yang686526 2009-05-05 10:55 AM

【转帖】filteronlyselect problem with version 1.14
 
filteronlyselect problem with version 1.14 ?
filteronlyselect problem with version 1.14 ?
this code used to work with dwgdirect v1.13:
// create selection set
oddbselectionsetptr psset = oddbselectionset::createobject( pdb);
// create resbuf filter for block references
odresbufptr resfilter = odresbuf::newrb( odresbuf::kdxfstart, "acdbblockreference");
// find all block references in the dwg
psset->filteronlyselect( resfilter);
long nbinserts = psset->numentities();
with version 1.14 and the same drawing, numentities() returns 0.
i tried with vc2003 & vc8.
anybody has an idea ?
thanx
lionel
in filters, under 0 groupcode, entity dxf name should be passed ('insert' in your case), so that filter would look like dxf - that is the main idea.
there was a bug in dd, with these filters. now it is fixed. (and that code is compatible with arx)
moreover, with odbagfiler.drx module loaded, you may filter entities by any group code.
unfortunately this breaking change was not mentioned in release notes
vladimir
thank you vladimir !
i missed the try. arx compatibility is a good thing.
lionel


所有的时间均为北京时间。 现在的时间是 08:20 PM.