[求助]怎么样使用AcDbPolyline里面的SegType Enum来画圆弧多段线
<p>怎么样使用AcDbPolyline里面的SegType Enum,进而画出出圆弧多段线,默认的枚举等于kLine,请问怎么样改变为kArc画出圆弧多段线呢</p><p>万分感激</p><p></p><p>我的部分代码如下:</p><p> AcDbPolyline* pPl = new AcDbPolyline(12);<br/> AcDbPolyline::SegType = AcDbPolyline::kArc;<br/> pPl->addVertexAt(0,polylinePts.convert2d(AcGePlane::kXYPlane));<br/> pPl->addVertexAt(1,cntrPt1.convert2d(AcGePlane::kXYPlane));<br/> pPl->addVertexAt(2,polylinePts.convert2d(AcGePlane::kXYPlane));</p><p> AcDbBlockTable* pBT;<br/> acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBT,AcDb::kForRead);<br/> AcDbBlockTableRecord* pBTR;<br/> pBT->getAt(ACDB_MODEL_SPACE,pBTR,AcDb::kForWrite);<br/> pBT->close();<br/> pBTR->appendAcDbEntity(pPl);<br/> pPl->close();<br/> pBTR->close();</p> addVertexAt()函数中第三个参数设置一下bulge值就可以了。
页:
[1]