/// <summary> /// 绘制主部件上螺钉X方向的标注; /// </summary> private void DrawMainPartBoltDimX() { CBeamFrontViewSetting beamFrontViewSetting = CBeamDimSetting.GetInstance().mFrontViewSetting; bool bNeedMainBeamBoltDim = beamFrontViewSetting.FindDimValueByName(CBeamFrontViewSetting.mstrBolt); if (!bNeedMainBeamBoltDim) { return; } List <CMrDimSet> boltDimSetList = GetMainPartBoltDimSetX(); if (boltDimSetList == null || boltDimSetList.Count == 0) { return; } foreach (CMrDimSet mrDimSet in boltDimSetList) { if (mrDimSet == null || mrDimSet.Count <= 1) { continue; } List <Point> dimPointList = mrDimSet.GetDimPointList(); PointList pointList = new PointList(); foreach (Point point in dimPointList) { pointList.Add(point); } double dimDistance = mrDimSet.mDimDistance; Vector dimVector = mrDimSet.mDimVector; CDimTools.GetInstance().DrawDimensionSet(mViewBase, pointList, dimVector, dimDistance, CCommonPara.mSizeDimPath); } }
/// <summary> /// 私有构造函数; /// </summary> private CBeamDimSetting() { mTopViewSetting = new CBeamTopViewSetting(); mFrontViewSetting = new CBeamFrontViewSetting(); mSectionViewSetting = new CBeamSectionViewSetting(); }