几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】请问这样遍历acdb3dpolyline的节点有问题吗? (http://www.dimcax.com/hust/showthread.php?t=8244)

yang686526 2009-04-18 09:59 PM

【转帖】请问这样遍历acdb3dpolyline的节点有问题吗?
 
请问这样遍历acdb3dpolyline的节点有问题吗?
请问这样遍历acdb3dpolyline的节点有问题吗?
..............
if (strcmp(pcname, "acdb3dpolyline")==0)
{
acdb3dpolyline *pline;
pline = acdb3dpolyline::cast(pentity);
acdbobjectiterator* pverietor;
pverietor = pline->vertexiterator();
pline->close();

acdb2dvertex *pvertex;
acgepoint3d pt;
acdbobjectid vertexobjid;
for(pverietor->start(); !pverietor->done(); pverietor->step())
{
vertexobjid = pverietor->objectid();
acdbopenobject(pvertex, vertexobjid, acdb::kforread);
/// ////////////////////
// pvertex->close();
}
}
为什么这段代码在红色处运行出错?
请问这样遍历acdb3dpolyline的节点有问题吗?


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