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