高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|