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 MultiSpeed8 { //标题栏(替换) private void DrawFrameTtileText() { var dxf_white_color = TProduct.PumpGraph.Dxf.AutoCadHelper.WhiteColor; var layer_frame_text = GetLayerByName("扬程功率线"); var label_day = new DxfMText(BuildCadText(string.Format("Date:{0}", DateTime.Today.ToString("yyyy/MM/dd"))), new Point3D(530, 1003, 0d), 15); label_day.AttachmentPoint = AttachmentPoint.BottomLeft; if (this._frameTextFont != null) label_day.Style = this._frameTextFont; label_day.Color = dxf_white_color; label_day.Height = 12; label_day.Layer = layer_frame_text; _dxfFileModel.Entities.Add(label_day); if (!string.IsNullOrEmpty(this.ProductName)) { var label_name = new DxfMText(BuildCadText(this.ProductName), new Point3D(-2, 954, 0d), 15); label_name.AttachmentPoint = AttachmentPoint.BottomLeft; if (this._frameTextFont != null) label_name.Style = this._frameTextFont; label_name.Color = dxf_white_color; label_name.Height = 12; label_name.Layer = layer_frame_text; _dxfFileModel.Entities.Add(label_name); } if (!string.IsNullOrEmpty(_catalogName)) { var label_catalog = new DxfMText(BuildCadText(this._catalogName), new Point3D(600, 957, 0d), 15); label_catalog.AttachmentPoint = AttachmentPoint.BottomRight; if (this._frameTextFont != null) label_catalog.Style = this._frameTextFont; label_catalog.Color = dxf_white_color; label_catalog.Height = 12; label_catalog.Layer = layer_frame_text; _dxfFileModel.Entities.Add(label_catalog); } if (this._workPointReal != null && this._designPointStdUnit != null && this._workPointReal.Q > 0) { StringBuilder paras_content = new StringBuilder(); if (this._dpUnitQ != Eventech.Model.UnitQ.LS) { paras_content.AppendFormat(@" Q = {0} {1} ({2} L/s) \P", Math.Round(this._designPointUserUnit.X, 1), Eventech.Common.UnitQHelper.GetEnUnitName(this._dpUnitQ), Math.Round(Eventech.Common.UnitQHelper.fromM3H(Eventech.Model.UnitQ.LS, this._designPointStdUnit.X), 1)); } else { paras_content.AppendFormat(@" Q = {0} L/s \P", Math.Round(this._designPointUserUnit.X, 1)); } if (this._dpUnitH != Eventech.Model.UnitH.M) { paras_content.AppendFormat(@" H = {0} {1} ({2} m) \P", Math.Round(this._designPointUserUnit.Y, 1), Eventech.Common.UnitHHelper.GetEnUnitName(this._dpUnitH), Math.Round(Eventech.Common.UnitHHelper.fromM2(Eventech.Model.UnitH.M, this._designPointStdUnit.Y), 1)); } else { paras_content.AppendFormat(@" H = {0} m \P", Math.Round(this._designPointUserUnit.Y, 1)); } paras_content.AppendFormat(@" Pump eff = {0} % \P", Math.Round(this._workPointReal.E, 1)); paras_content.AppendFormat(@" Shaft power = {0} kW \P", Math.Round(this._workPointReal.P, 1)); if (!string.IsNullOrEmpty(this._motorPower)) paras_content.AppendFormat(@" Motor size = {0} kW \P", this._motorPower.ToUpper().Replace("KW", "")); paras_content.AppendFormat(@" NPSHr = {0} m \P", this._workPointReal.NPSH > 0 ? Math.Round(this._workPointReal.NPSH, 1).ToString() : ""); paras_content.Append(@" Density = 998.2 kg/m³"); DxfMText textLabel = new DxfMText(BuildCadText(paras_content.ToString()), new Point3D(415, 938, 0), 10); textLabel.Color = dxf_white_color; textLabel.AttachmentPoint = AttachmentPoint.TopLeft; //textLabel.BackgroundFillFlags = BackgroundFillFlags.UseBackgroundFillColor | BackgroundFillFlags.UseDrawingWindowColor; //textLabel.BackgroundFillInfo = new BackgroundFillInfo(); //textLabel.BackgroundFillInfo.BorderOffsetFactor = 1.25;//调整背景遮罩的比例 1是文字的背景,越大背景遮罩效果越大 textLabel.Height = 10; if (_curveTextFont != null) textLabel.Style = this._curveTextFont; textLabel.Layer = layer_frame_text; _dxfFileModel.Entities.Add(textLabel); } else if (this.RatedParas != null) { string paras_content = string.Format(@" Q = {0} m³/h ({1} L/s) \P H = {2} m \P Pump eff = {3} % \P Shaft power = {5} kW \P Motor size = {4} kW \P NPSHr = {6}m \P Density = 998.2 kg/m³", Math.Round(this.RatedParas.Q, 1), Math.Round(Eventech.Common.UnitQHelper.toLS(Eventech.Model.UnitQ.M3H, this.RatedParas.Q), 1), Math.Round(this.RatedParas.H, 1), Math.Round(this.RatedParas.E, 1), string.IsNullOrEmpty(this._motorPower) ? "" : this._motorPower.ToUpper().Replace("KW", ""), Math.Round(this.RatedParas.P, 1), this.RatedParas.NPSHr > 0 ? Math.Round(this.RatedParas.NPSHr, 1).ToString() : ""); DxfMText textLabel = new DxfMText(BuildCadText(paras_content), new Point3D(415, 938, 0), 10); textLabel.Color = dxf_white_color; textLabel.AttachmentPoint = AttachmentPoint.TopLeft; //textLabel.BackgroundFillFlags = BackgroundFillFlags.UseBackgroundFillColor | BackgroundFillFlags.UseDrawingWindowColor; //textLabel.BackgroundFillInfo = new BackgroundFillInfo(); //textLabel.BackgroundFillInfo.BorderOffsetFactor = 1.25;//调整背景遮罩的比例 1是文字的背景,越大背景遮罩效果越大 textLabel.Height = 10; if (_curveTextFont != null) textLabel.Style = this._curveTextFont; textLabel.Layer = layer_frame_text; _dxfFileModel.Entities.Add(textLabel); } //if (this._dwgObjectDict == null) // return; //// //DxfMText label_dp = null; //if (this.DesignPoint != null) //{ // label_dp = new DxfMText(this.DesignPoint.X.ToString(), new Point3D(320 - 50, 1088, 0d), 10);//\P表示回车 // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); // label_dp = new DxfMText(this.DesignPoint.Y.ToString(), new Point3D(320 - 50, 1067, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("入口口径")) //{ // label_dp = new DxfMText(_dwgObjectDict["入口口径"], new Point3D(604 - 50, 1088, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("出口口径")) //{ // label_dp = new DxfMText(_dwgObjectDict["出口口径"], new Point3D(604 - 50, 1067, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.E, 1).ToString(), new Point3D(320 - 50, 1043, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null && this._workPointReal.NPSH > 0) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.NPSH, 1).ToString(), new Point3D(604 - 50, 1043, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null && this._workPointReal.P > 0) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.P, 2).ToString(), new Point3D(604 - 50, 1021, 0d), 10);//双达功率保留2位小数 // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("叶轮级数")) //{ // label_dp = new DxfMText(_dwgObjectDict["叶轮级数"], new Point3D(320 - 50, 1021, 0d), 9); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} ////if (!string.IsNullOrEmpty(this._motorPower)) ////{ //// label_dp = new DxfMText(this._motorPower, new Point3D(355, -135, 0d), 15); //// label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; //// if (this._frameTextFont != null) //// label_dp.Style = this._frameTextFont; //// label_dp.Color = txtColor; //// _dxfFileModel.Entities.Add(label_dp); ////} //if (this._workPointN > 10) //{ // label_dp = new DxfMText(this._workPointN.ToString(), new Point3D(-50, 1030, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (!string.IsNullOrEmpty(this._curveCode)) //{ // label_dp = new DxfMText(this._curveCode, new Point3D(152 - 50, 989, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("转向")) //{ // string info = ""; // if (_dwgObjectDict["转向"] == (Eventech.Model.eRotationDir.逆时针).ToString()) // { // info = "泵从驱动端看逆时针方向旋转"; // } // else // { // info = "泵从驱动端看顺时针方向旋转"; // } // label_dp = new DxfMText(info, new Point3D(300 - 50, 989, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleLeft; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ItemCode")) //{ // label_dp = new DxfMText(_dwgObjectDict["ItemCode"], new Point3D(565 - 50, -110, 0d), 11); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ProjectName")) //{ // label_dp = new DxfMText(_dwgObjectDict["ProjectName"], new Point3D(163 - 50, -110, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("SelectEmployeeName")) //{ // label_dp = new DxfMText(_dwgObjectDict["SelectEmployeeName"], new Point3D(487 - 50, -155, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ItemName")) //{ // label_dp = new DxfMText(_dwgObjectDict["ItemName"], new Point3D(163 - 50, -155, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} ////日期 //DxfMText label_dt = new DxfMText(DateTime.Today.ToString("yyyy-MM-dd"), new Point3D(682 - 55, -155, 0d), 14); //label_dt.AttachmentPoint = AttachmentPoint.MiddleCenter; //if (this._frameTextFont != null) // label_dt.Style = this._frameTextFont; //label_dt.Color = txtColor; //_dxfFileModel.Entities.Add(label_dt); } //标题栏(替换) private void DrawFrameTtileText_作废() { var dxf_white_color = TProduct.PumpGraph.Dxf.AutoCadHelper.WhiteColor; var label_name = new DxfMText(BuildCadText(this.ProductName), new Point3D(10, 950, 0d), 15); label_name.AttachmentPoint = AttachmentPoint.BottomLeft; if (this._frameTextFont != null) label_name.Style = this._frameTextFont; label_name.Color = dxf_white_color; label_name.Height = 12; _dxfFileModel.Entities.Add(label_name); var label2 = new DxfMText(string.Format(BuildCadText("Date:{0}"), DateTime.Today.ToString("yyyy/MM/dd")), new Point3D(520, 1008, 0d), 15); label2.AttachmentPoint = AttachmentPoint.BottomLeft; if (this._frameTextFont != null) label2.Style = this._frameTextFont; label2.Color = dxf_white_color; label2.Height = 12; _dxfFileModel.Entities.Add(label2); if (!string.IsNullOrEmpty(_catalogName)) { var label_catalog = new DxfMText(BuildCadText(this._catalogName), new Point3D(600, 950, 0d), 15); label_catalog.AttachmentPoint = AttachmentPoint.BottomRight; if (this._frameTextFont != null) label_catalog.Style = this._frameTextFont; label_catalog.Color = dxf_white_color; label_catalog.Height = 12; _dxfFileModel.Entities.Add(label_catalog); } //if (this._workPointReal != null && this.DesignPoint!=null) //{ // string paras_content = string.Format(@"Q = {0} m³/h ({1} L/s) \P H = {2} m \P Eta pump = {3} % \P Motor size ={4} kw \P P = {5} kw \P Npshr = {6}m \P Density = 998.2 kg/m³", // Math.Round(this.DesignPoint.X, 1), // Math.Round(Eventech.Common.UnitQHelper.toLS(Eventech.Model.UnitQ.M3H, this.DesignPoint.X), 1), // Math.Round(this.DesignPoint.Y, 1), // Math.Round(this._workPointReal.E, 1), // this.MotorPower, // Math.Round(this._workPointReal.P, 1), // Math.Round(this._workPointReal.NPSH, 1)); // DxfMText textLabel = new DxfMText(paras_content, new Point3D(590, 935, 0), 10); // textLabel.Color = dxf_white_color; // textLabel.AttachmentPoint = AttachmentPoint.TopRight; // textLabel.BackgroundFillFlags = BackgroundFillFlags.UseBackgroundFillColor | BackgroundFillFlags.UseDrawingWindowColor; // textLabel.BackgroundFillInfo = new BackgroundFillInfo(); // textLabel.BackgroundFillInfo.BorderOffsetFactor = 1.25;//调整背景遮罩的比例 1是文字的背景,越大背景遮罩效果越大 // textLabel.Height = 10; // if (_curveTextFont != null) // textLabel.Style = this._curveTextFont; // _dxfFileModel.Entities.Add(textLabel); //} //if (this._dwgObjectDict == null) // return; //// //DxfMText label_dp = null; //if (this.DesignPoint != null) //{ // label_dp = new DxfMText(this.DesignPoint.X.ToString(), new Point3D(320 - 50, 1088, 0d), 10);//\P表示回车 // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); // label_dp = new DxfMText(this.DesignPoint.Y.ToString(), new Point3D(320 - 50, 1067, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("入口口径")) //{ // label_dp = new DxfMText(_dwgObjectDict["入口口径"], new Point3D(604 - 50, 1088, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("出口口径")) //{ // label_dp = new DxfMText(_dwgObjectDict["出口口径"], new Point3D(604 - 50, 1067, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.E, 1).ToString(), new Point3D(320 - 50, 1043, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null && this._workPointReal.NPSH > 0) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.NPSH, 1).ToString(), new Point3D(604 - 50, 1043, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._workPointReal != null && this._workPointReal.P > 0) //{ // label_dp = new DxfMText(Math.Round(this._workPointReal.P, 2).ToString(), new Point3D(604 - 50, 1021, 0d), 10);//双达功率保留2位小数 // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("叶轮级数")) //{ // label_dp = new DxfMText(_dwgObjectDict["叶轮级数"], new Point3D(320 - 50, 1021, 0d), 9); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} ////if (!string.IsNullOrEmpty(this._motorPower)) ////{ //// label_dp = new DxfMText(this._motorPower, new Point3D(355, -135, 0d), 15); //// label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; //// if (this._frameTextFont != null) //// label_dp.Style = this._frameTextFont; //// label_dp.Color = txtColor; //// _dxfFileModel.Entities.Add(label_dp); ////} //if (this._workPointN > 10) //{ // label_dp = new DxfMText(this._workPointN.ToString(), new Point3D(-50, 1030, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (!string.IsNullOrEmpty(this._curveCode)) //{ // label_dp = new DxfMText(this._curveCode, new Point3D(152 - 50, 989, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("转向")) //{ // string info = ""; // if (_dwgObjectDict["转向"] == (Eventech.Model.eRotationDir.逆时针).ToString()) // { // info = "泵从驱动端看逆时针方向旋转"; // } // else // { // info = "泵从驱动端看顺时针方向旋转"; // } // label_dp = new DxfMText(info, new Point3D(300 - 50, 989, 0d), 10); // label_dp.AttachmentPoint = AttachmentPoint.MiddleLeft; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ItemCode")) //{ // label_dp = new DxfMText(_dwgObjectDict["ItemCode"], new Point3D(565 - 50, -110, 0d), 11); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ProjectName")) //{ // label_dp = new DxfMText(_dwgObjectDict["ProjectName"], new Point3D(163 - 50, -110, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("SelectEmployeeName")) //{ // label_dp = new DxfMText(_dwgObjectDict["SelectEmployeeName"], new Point3D(487 - 50, -155, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} //if (this._dwgObjectDict != null && this._dwgObjectDict.ContainsKey("ItemName")) //{ // label_dp = new DxfMText(_dwgObjectDict["ItemName"], new Point3D(163 - 50, -155, 0d), 14); // label_dp.AttachmentPoint = AttachmentPoint.MiddleCenter; // if (this._frameTextFont != null) // label_dp.Style = this._frameTextFont; // label_dp.Color = txtColor; // _dxfFileModel.Entities.Add(label_dp); //} ////日期 //DxfMText label_dt = new DxfMText(DateTime.Today.ToString("yyyy-MM-dd"), new Point3D(682 - 55, -155, 0d), 14); //label_dt.AttachmentPoint = AttachmentPoint.MiddleCenter; //if (this._frameTextFont != null) // label_dt.Style = this._frameTextFont; //label_dt.Color = txtColor; //_dxfFileModel.Entities.Add(label_dt); } } }