- 积分
- 23696
- 明经币
- 个
- 注册时间
- 2003-7-8
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
本帖最后由 作者 于 2003-11-23 14:01:54 编辑
if(kkkk==1)AcDb2dPolyline *pline=new AcDb2dPolyline(AcDb::k2dFitCurvePoly,pt,0.0,Adesk::kTrue,bl1,bl1);
if(kkkk==2)AcDb2dPolyline *pline=new AcDb2dPolyline(AcDb::k2dQuadSplinePoly,pt,0.0,Adesk::kFalse,bl1,bl1);
if(kkkk==3)AcDb2dPolyline *pline=new AcDb2dPolyline(AcDb::k2dCubicSplinePoly,pt,0.0,Adesk::kFalse,bl1,bl1);
..........
pline->setElevation(zvalue);
if(gc2==0.0)pline->setColorIndex(3);
AcDbBlockTable *pBlockTable;
acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBlockTable,AcDb::kForRead);
AcDbBlockTableRecord *pBlockTableRecord;
pBlockTable->getAt(ACDB_MODEL_SPACE,pBlockTableRecord,AcDb::kForWrite);
pBlockTable->close();
AcDbObjectId plineObjId;
pBlockTableRecord->appendAcDbEntity(plineObjId,pline);
pBlockTableRecord->close();
pline->setLayer(layer_tc);
pline->setLinetype(layer_xx);
pline->close(); |
|