- 积分
- 12459
- 明经币
- 个
- 注册时间
- 2003-5-28
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-9-19 12:35:00
|
显示全部楼层
回复
我也没有找到,可以用别的方法.你只为修改线宽吗?
void CRebuildLineType::set2dPoyline(AcDbEntity *pEntity, AcDbObjectId plineId, double width, double thickness) { AcDb2dPolyline *pPline = (AcDb2dPolyline*) pEntity; pPline->setThickness(thickness);
AcDbObjectIterator *pVertIter = pPline->vertexIterator();
AcDb2dVertex *pVertex; AcDbObjectId vertexObjId; for (int vertexNumber = 0; !pVertIter->done(); vertexNumber++, pVertIter->step()) { vertexObjId = pVertIter->objectId(); acdbOpenObject(pVertex, vertexObjId, AcDb::kForWrite); pVertex->setStartWidth(width); pVertex->setEndWidth(width); pVertex->close(); } delete pVertIter; } |
|