几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】odlylayerfilterparent90 does not work (http://www.dimcax.com/hust/showthread.php?t=17742)

yang686526 2009-05-06 09:01 PM

【转帖】odlylayerfilterparent90 does not work
 
odlylayerfilter::parent() does not work
odlylayerfilter::parent() does not work
assertion below fails. proot is of type (const odlylayerfilter*)
code:
for ( unsigned int i = 0; i < proot->getnestedfilters().length(); i++ )
assert((const odlylayerfilter*)proot->getnestedfilters()[i]->parent() == proot);
regards,
michal sliwka
attached files
this is a bug in dd - 'parent' property is not set while adding filters now.
you can easily implement this behaviour yourself if needed,
overriding addnested and getparent
besides, in current release, expression parsing is not implemented,
so if you need 'filter' function,
you should write you descendant anyway.


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