- 积分
- 1038
- 明经币
- 个
- 注册时间
- 2023-6-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
//创建坐标标注
AcDbObjectId CDimensionUtil::AddDimOrdinate(Adesk::Boolean xAxis, AcGePoint3d &ptStart,const AcGePoint3d &ptEnd,const TCHAR *dimText,AcDbObjectId dimStyle)
{
AcDbOrdinateDimension *pDim = new AcDbOrdinateDimension(xAxis,ptStart,ptEnd,dimText,dimStyle);
return CDwgDatabaseUtil::PostToModelSpace(pDim);
}
//重载函数,创建坐标xy标注
AcDbObjectIdArray CDimensionUtil::AddDimOrdinate(const AcGePoint3d &ptDef,const AcGePoint3d &ptTextX,const AcGePoint3d &ptTextY)
{
AcDbObjectId dimId;
AcDbObjectIdArray dimIds;
dimId = AddDimOrdinate(Adesk::kTrue,ptDef,ptTextX); //编译时报错 none of the 3 overloads could convert all the argument types
dimIds.append(dimId);
dimId = AddDimOrdinate(Adesk::kFalse,ptDef,ptTextY); //编译时报错 none of the 3 overloads could convert all the argument types
dimIds.append(dimId);
return dimIds;
}
|
|