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

yang686526 2009-05-05 10:10 AM

【转帖】explode produces invalid execution
 
explode produces invalid execution
explode produces invalid execution
greetings,
i have an autocad dwg version ac1015 with many blockreference and proxyentity entities defined. in my code i have to explode these to get at whatever has been hidden inside.
here's my problem: on all my other test dwg files, when i explode a block, oddb2dpolyline and oddb3dpolyline are processed correctly. however, when i explode a block or proxy entity in this particular drawing, i can get the start point without problem, but when i call getendpoint() i recieve a "expression: invalid execution" at line 135 of "file: source\database\dbobjectiterator.cpp". (version dd1.12) in the vc6mdd library.
the stack shows:
_assert()
odassert()
oddbnondbroobjectiteratorimpl:bjectid()
oddb2dpolyline::getendpoint()
any ideas?
al
as a result of dd bug getendpoint in 2d and 3d polyline does not work for non-database-resident objects.
you can use vertex iterator in your case.
sergey slezkin


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