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

yang686526 2009-05-04 03:31 PM

【转帖】access violation on oddb3dpolyline
 
access violation on oddb3dpolyline
access violation on oddb3dpolyline
hi,
i am trying to access vertices in a oddb3dpolyline but getting access violation. here is how i am trying to use:
oddb3dpolylineptr ppline = id.safeopenobject();
oddbobjectiteratorptr it = ppline->vertexiterator();
it->start();
oddb3dpolylinevertexptr vert = ppline->openvertex(it->objectid(), oddb::kforread);
it gives me access violation on the last line. i don't know what am i missing here.
thanks for your help.
may it happen that you attempt to open more vertices than polyline has? how do you check for end?
are erasing/replacing/modifying vertices?
sergey slezkin


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