几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】[求助]怎么样使用acdbpolyline里面的segtype enum来画圆弧多段线 (http://www.dimcax.com/hust/showthread.php?t=6849)

yang686526 2009-04-16 04:30 PM

【转帖】[求助]怎么样使用acdbpolyline里面的segtype enum来画圆弧多段线
 
[求助]怎么样使用acdbpolyline里面的segtype enum来画圆弧多段线
[求助]怎么样使用acdbpolyline里面的segtype enum来画圆弧多段线
怎么样使用acdbpolyline里面的segtype enum,进而画出出圆弧多段线,默认的枚举等于kline,请问怎么样改变为karc画出圆弧多段线呢
万分感激
我的部分代码如下:
acdbpolyline* ppl = new acdbpolyline(12);
acdbpolyline::segtype = acdbpolyline::karc;
ppl->addvertexat(0,polylinepts[3].convert2d(acgeplane::kxyplane));
ppl->addvertexat(1,cntrpt1.convert2d(acgeplane::kxyplane));
ppl->addvertexat(2,polylinepts[0].convert2d(acgeplane::kxyplane));
acdbblocktable* pbt;
acdbhostapplicationservices()->workingdatabase()->getblocktable(pbt,acdb::kforread);
acdbblocktablerecord* pbtr;
pbt->getat(acdb_model_space,pbtr,acdb::kforwrite);
pbt->close();
pbtr->appendacdbentity(ppl);
ppl->close();
pbtr->close();


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