using System; using System.Collections.Generic; using System.Linq; using System.Text; using WW.Cad.Base; using WW.Cad.Drawing; using WW.Cad.Drawing.GDI; using WW.Cad.IO; using WW.Cad.Model; using WW.Math; using WW.Cad.Model.Entities; using WW.Actions; using WW.Cad.Model.Tables; using WW.Cad.Model.Objects; namespace TProduct.PumpGraph.Dxf { public partial class ZlpFeatChart1 { // 设计点 private void DrawDesignPointLine() { if (_designPointStdUnit == null) return; Point2D centerPt = new Point2D(); centerPt.X = MapRealToPictQ(_coordinateParas.AxisCalcQ.Calc(_designPointStdUnit.X )); centerPt.Y = MapRealToPictH(_coordinateParas.AxisCalcH.Calc(_designPointStdUnit.Y )); DxfLine lineH = new DxfLine(new Point2D(centerPt.X, centerPt.Y), new Point2D(centerPt.X - 25, centerPt.Y)); lineH.LineWeight = 35; lineH.Color = _designPointColor; _dxfFileModel.Entities.Add(lineH); DxfLine lineV = new DxfLine(new Point2D(centerPt.X, centerPt.Y), new Point2D(centerPt.X, centerPt.Y - 16)); lineV.LineWeight = 35; lineV.Color = _designPointColor; _dxfFileModel.Entities.Add(lineV); DxfLine lineX1 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 16), new Point2D(centerPt.X - 25, centerPt.Y)); lineX1.LineWeight = 35; lineX1.Color = _designPointColor; _dxfFileModel.Entities.Add(lineX1); DxfLine lineX2 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 11.26), new Point2D(centerPt.X - 17.45, centerPt.Y)); lineX2.LineWeight = 35; lineX2.Color = _designPointColor; _dxfFileModel.Entities.Add(lineX2); DxfLine lineX3 = new DxfLine(new Point2D(centerPt.X, centerPt.Y - 6.52), new Point2D(centerPt.X - 10.1, centerPt.Y)); lineX3.LineWeight = 35; lineX3.Color = _designPointColor; _dxfFileModel.Entities.Add(lineX3); } //标题栏 private void DrawFrameTtileText() { Point2D _frameLeftBottomPt = new Point2D(-130, -253); var greenColor = TProduct.PumpGraph.Dxf.AutoCadHelper.YellowColor; //日期 DxfText text_label_day = new DxfText(DateTime.Today.ToString("yyyy-MM-dd"), new Point3D(268, -248, 0d), 8); text_label_day.Thickness = 0.4d; if (_frameTextFont != null) text_label_day.Style = _frameTextFont; text_label_day.Color = greenColor; _dxfFileModel.Entities.Add(text_label_day); if (!string.IsNullOrEmpty(_productName)) { DxfText axisLabel_q1 = new DxfText(_productName, new Point3D(365, -133, 0d), 20); if (this._frameTextFont != null) axisLabel_q1.Style = _frameTextFont; //axisLabel.Style = _defaultTextFont; axisLabel_q1.Color = greenColor; _dxfFileModel.Entities.Add(axisLabel_q1); } } } }