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

yang686526 2009-05-05 09:33 AM

【转帖】erasing an oddbcircle
 
erasing an oddbcircle
erasing an oddbcircle
hello,
i have the following code:
oddblineptr pline;
pline = oddbline::cast(idline1.safeopenobject
(oddb::kforwrite));
pline->erase();
pline = oddbline::cast(idline2.safeopenobject
(oddb::kforwrite));
pline->erase();
oddbcircle* pcircle;
pcircle = oddbcircle::cast(idcircle.safeopenobject
(oddb::kforwrite));
pcircle->erase();
while the line is erased correctly, erasing the circle throws an error message, an assertion failed in file dbobject.cpp, line 344,
invalid execution.
if i omit the assertion, then the program throws an oderror exception with the following error description "not opened for read".
could this be a dd bug?.
sorry, the problem is using an oddbcircle* instead of an oddbcircleptr.
best regards.


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