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

yang686526 2009-05-06 11:20 PM

【转帖】problem with iterator seek90 method
 
problem with iterator seek() method
problem with iterator seek() method
it's complex :
in my class, i have a public variable oddbobjectid idbloc_current;
this variable is correctly initialised (i have verified the autocad handle of idbloc_current),
in a function, i have this code :
oddbblocktableptr ptableblock = getblocktableid().safeopenobject();
oddbsymboltableiteratorptr pitertableblock = ptableblock->newiterator();
pitertableblock->seek(idbloc_current); // crash
if i use the nex code, it's ok
for (pitertableblock->start(); ! pitertableblock->done(); pitertableblock->step())
{
if (pitertableblock->getrecordid() == idbloc_current)
break;
}
help me !!!
thanks,
laurent
looks like the implementation for this seek method is not completed yet. i've noted this for the engineers to look at.


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