tx
2025-04-09 fa7510e1ed63df0366787fa4ed1b3db6426d2b46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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);
            }
 
        }
 
 
 
 
    }
}