Procházet zdrojové kódy

20250722hctool最新

qyx před 1 dnem
rodič
revize
483c75401e
100 změnil soubory, kde provedl 66158 přidání a 0 odebrání
  1. 463
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd.cs
  2. 176
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.Designer.cs
  3. 96
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.cs
  4. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.resx
  5. 3
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/FodyWeavers.xml
  6. 141
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/FodyWeavers.xsd
  7. 114
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.Designer.cs
  8. 159
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.cs
  9. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.resx
  10. 144
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.Designer.cs
  11. 226
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.cs
  12. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.resx
  13. 117
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.Designer.cs
  14. 508
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.cs
  15. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.resx
  16. 109
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.Designer.cs
  17. 141
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.cs
  18. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.resx
  19. 144
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.Designer.cs
  20. 1314
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.cs
  21. 120
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.resx
  22. 56
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/HCTools.dll.config
  23. 52362
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/NetTopologySuite.xml
  24. 173
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Buffers.xml
  25. 464
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Diagnostics.DiagnosticSource.xml
  26. 3489
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Memory.xml
  27. 3451
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Numerics.Vectors.xml
  28. 353
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Runtime.CompilerServices.Unsafe.xml
  29. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/028E9832F421F11F9497C610F1734E0F3D868037.costura.costura.dll.compressed.compressed
  30. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/6C6000A5EAF8579850AB82A89BD6268776EB51AD.costura.costura.pdb.compressed.compressed
  31. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/806F4C19B2D7FD9E3B836269EC07647019A29E95.costura.costura.pdb.compressed.compressed
  32. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/854B457BEEC353FD20BD195521FF03D7E7BB138C.costura.nettopologysuite.dll.compressed.compressed
  33. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/85DC92EDD4B0049ED9049E075C4DEF8A3D64E43B.costura.system.diagnostics.diagnosticsource.dll.compressed.compressed
  34. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/8890AD1911448490526D2A45AC8CC518B6E886A2.costura.system.numerics.vectors.dll.compressed.compressed
  35. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/8C23283128D23F6CBC208E3A485A1CF1A9C0CB50.costura.system.buffers.dll.compressed.compressed
  36. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/E5D644311A6087C6A500F0E79BAE4AF305430B3D.costura.system.runtime.compilerservices.unsafe.dll.compressed.compressed
  37. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/F1F25C01F6ACF33BDD62C4F82D3EF078E76F0906.costura.costura.dll.compressed.compressed
  38. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/F8A118F07EEA37CE732B487AB730646DEDC46235.costura.system.memory.dll.compressed.compressed
  39. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.Dgxthrorvrd_Form.resources
  40. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.GCDdelete_Form.resources
  41. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.InsertDOMs_to_one.resources
  42. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.JQXlabel.resources
  43. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.ModifyTFH.resources
  44. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.OutputbyTK_Form.resources
  45. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.AssemblyReference.cache
  46. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.CopyComplete
  47. 6
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.Fody.CopyLocal.cache
  48. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.Fody.RuntimeCopyLocal.cache
  49. 56
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/packages.config
  50. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/.signature.p7s
  51. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/Costura.Fody.5.7.0.nupkg
  52. 15
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/build/Costura.Fody.props
  53. 13
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/build/Costura.Fody.targets
  54. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/icon.png
  55. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.dll
  56. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.pdb
  57. 23
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.xml
  58. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.dll
  59. 115
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.xcf
  60. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.dll
  61. 115
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.xcf
  62. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/.signature.p7s
  63. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/Fody.6.8.0.nupkg
  64. 21
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/License.txt
  65. 147
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/build/Fody.targets
  66. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Fody.dll
  67. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyCommon.dll
  68. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyHelpers.dll
  69. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyIsolated.dll
  70. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Pdb.dll
  71. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Pdb.pdb
  72. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Rocks.dll
  73. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Rocks.pdb
  74. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.dll
  75. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.pdb
  76. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Fody.dll
  77. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyCommon.dll
  78. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyHelpers.dll
  79. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyIsolated.dll
  80. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Pdb.dll
  81. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Pdb.pdb
  82. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Rocks.dll
  83. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Rocks.pdb
  84. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.dll
  85. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.pdb
  86. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/.signature.p7s
  87. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/Microsoft.NETCore.Platforms.1.1.0.nupkg
  88. 31
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/ThirdPartyNotices.txt
  89. 128
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/dotnet_library_license.txt
  90. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/lib/netstandard1.0/_._
  91. 406
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/runtime.json
  92. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/.signature.p7s
  93. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/Microsoft.Win32.Primitives.4.3.0.nupkg
  94. 31
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/ThirdPartyNotices.txt
  95. 128
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/dotnet_library_license.txt
  96. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/MonoAndroid10/_._
  97. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/MonoTouch10/_._
  98. binární
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/net46/Microsoft.Win32.Primitives.dll
  99. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/xamarinios10/_._
  100. 0
    0
      加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/xamarinmac20/_._

+ 463
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd.cs Zobrazit soubor

@@ -0,0 +1,463 @@
1
+using GrxCAD.DatabaseServices;
2
+using GrxCAD.EditorInput;
3
+using GrxCAD.Geometry;
4
+using System;
5
+using System.Collections.Generic;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Threading.Tasks;
9
+
10
+namespace HCTools
11
+{
12
+    class Dgxthrorvrd
13
+    {
14
+        public static List<string> dgxlist;
15
+        public static List<string> rvrdlist;
16
+        public static List<string> kzlist;
17
+        public static int blc;
18
+
19
+
20
+        public void DgxCut()
21
+        {
22
+            string dgxname = "";
23
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
24
+
25
+            for (int i = 0; i < dgxlist.Count; i++)
26
+            {
27
+                if (i == 0)
28
+                    dgxname = dgxlist[i];
29
+                else
30
+                    dgxname = dgxname + "," + dgxlist[i];
31
+            }
32
+            TypedValue[] value = new TypedValue[]
33
+            {
34
+                    new TypedValue((int)DxfCode.LayerName,dgxname)
35
+            };
36
+            SelectionFilter filter = new SelectionFilter(value);
37
+            //dynamic acadApp = GrxCAD.ApplicationServices.Application.AcadApplication;
38
+            //acadApp.ZoomExtents();
39
+            PromptSelectionResult psr = ed.SelectAll(filter);
40
+            if (psr.Status == PromptStatus.OK)
41
+            {
42
+                SelectionSet ss = psr.Value;
43
+                ObjectIdCollection idcoll = new ObjectIdCollection(ss.GetObjectIds());
44
+                for (int ii = 0; ii < idcoll.Count; ii++)
45
+                {
46
+                    //using (Transaction trans = db.TransactionManager.StartTransaction())
47
+                    //{
48
+                        Intersectcheck(idcoll[ii], ed);
49
+                    ed.WriteMessage("ii");
50
+                        //trans.Commit();
51
+                    //}
52
+                }
53
+            }
54
+            dgxlist.Clear();
55
+            if (rvrdlist != null)
56
+                rvrdlist.Clear();
57
+            if (kzlist != null)
58
+                kzlist.Clear();
59
+        }
60
+
61
+        private void Intersectcheck(ObjectId id, Editor ed)
62
+        {
63
+            var plane = new Plane(Point3d.Origin, Vector3d.ZAxis);
64
+            Point3dCollection pts = new Point3dCollection();
65
+            Point3dCollection pts1 = new Point3dCollection();
66
+            Point3dCollection kz_pts = new Point3dCollection();
67
+            string rvrdname = "";
68
+            string kzname = "";
69
+            //为坎子让出的长度
70
+            double cut_dist = 0.5;
71
+            if (blc == 1000)
72
+                cut_dist = cut_dist * 2;
73
+            if (blc == 2000)
74
+                cut_dist = cut_dist * 4;
75
+            if (blc == 5000)
76
+                cut_dist = cut_dist * 10;
77
+            if (blc == 10000)
78
+                cut_dist = cut_dist * 20;
79
+
80
+            Database db = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
81
+            using (Transaction trans = db.TransactionManager.StartTransaction())
82
+            {
83
+                Entity ent = trans.GetObject(id, OpenMode.ForWrite) as Entity;
84
+                Polyline pll = new Polyline();
85
+                if (ent is Polyline)
86
+                    pll = (Polyline)ent;
87
+                else
88
+                    return;
89
+                //添加道路河流房屋的图层名并搜索相应图层上的实体
90
+                if (rvrdlist != null)
91
+                {
92
+                    if (kzlist != null)
93
+                    {
94
+                        rvrdlist.AddRange(kzlist);
95
+                    }
96
+                    Point3dCollection ptcoll = new Point3dCollection();
97
+                    for (int i = 0; i < pll.NumberOfVertices; i++)
98
+                    {
99
+                        ptcoll.Add(pll.GetPoint3dAt(i));
100
+                    }
101
+                    List<string> lyrname = rvrdlist;
102
+                    for (int i = 0; i < lyrname.Count; i++)
103
+                    {
104
+                        if (i == 0)
105
+                            rvrdname = lyrname[i];
106
+                        else
107
+                            rvrdname = rvrdname + "," + lyrname[i];
108
+                    }
109
+                    TypedValue[] value = new TypedValue[]
110
+                    {
111
+                        new TypedValue((int)DxfCode.LayerName,rvrdname)
112
+                    };
113
+                    SelectionFilter filter = new SelectionFilter(value);
114
+                    ZoomView(ed, pll.Bounds.Value.MinPoint, pll.Bounds.Value.MaxPoint);
115
+                    PromptSelectionResult psr = ed.SelectFence(ptcoll,filter);
116
+                    if (psr.Status == PromptStatus.OK)
117
+                    {
118
+                        SelectionSet ss = psr.Value;
119
+                        ObjectIdCollection idcoll = new ObjectIdCollection(ss.GetObjectIds());
120
+                        for (int i = 0; i < idcoll.Count; i++)
121
+                        {
122
+                            Entity ent1 = trans.GetObject(idcoll[i], OpenMode.ForWrite) as Entity;
123
+                            Polyline pll_rvrd = new Polyline();
124
+                            if (ent is Polyline)
125
+                                pll_rvrd = (Polyline)ent;
126
+                            else
127
+                                continue;
128
+                            Point3dCollection intersectionPoints = new Point3dCollection();
129
+                            pll.IntersectWith(pll_rvrd, Intersect.OnBothOperands, plane, intersectionPoints, IntPtr.Zero, IntPtr.Zero);
130
+                            if (intersectionPoints.Count > 0)
131
+                            {
132
+                                foreach (Point3d pt in intersectionPoints)
133
+                                {
134
+                                    pts.Add(pt);
135
+                                }
136
+                            }
137
+                        }
138
+                    }
139
+                    //SelectionFilter filter = new SelectionFilter(value);
140
+                    //PromptSelectionResult psr = ed.SelectAll(filter);
141
+                    //if (psr.Status == PromptStatus.OK)
142
+                    //{
143
+                    //    //创建新图层
144
+                    //    //LayerControl layerscontrol = new LayerControl();
145
+                    //    //string layname = "待删除等高线";
146
+                    //    //if (!layerscontrol.haslayername(layname))
147
+                    //    //{
148
+                    //    //    colorgb col = new colorgb(255, 0, 255);
149
+                    //    //    layerscontrol.creatlayer(layname, col);
150
+                    //    //    layerscontrol.movelayertofront(layname);
151
+                    //    //}
152
+                    //    //else
153
+                    //    //    layerscontrol.movelayertofront(layname);
154
+
155
+                    //    SelectionSet ss = psr.Value;
156
+                    //    ObjectIdCollection idcoll = new ObjectIdCollection(ss.GetObjectIds());
157
+                    //    for (int i = 0; i < idcoll.Count; i++)
158
+                    //    {
159
+                    //        Entity ent1 = trans.GetObject(idcoll[i], OpenMode.ForWrite) as Entity;
160
+                    //        Polyline pll_rvrd = new Polyline();
161
+                    //        if (ent is Polyline)
162
+                    //            pll_rvrd = (Polyline)ent;
163
+                    //        else
164
+                    //            continue;
165
+                    //        Point3dCollection intersectionPoints = new Point3dCollection();
166
+                    //        pll.IntersectWith(pll_rvrd, Intersect.OnBothOperands, plane, intersectionPoints, IntPtr.Zero, IntPtr.Zero);
167
+                    //        if (intersectionPoints.Count > 0)
168
+                    //        {
169
+                    //            foreach (Point3d pt in intersectionPoints)
170
+                    //            {
171
+                    //                pts.Add(pt);
172
+                    //            }
173
+                    //        }
174
+                    //    }
175
+                    //}
176
+                }
177
+
178
+
179
+
180
+                //添加坎子图层名并搜索相应图层上的实体
181
+                if (kzlist != null)
182
+                {
183
+                    for (int i = 0; i < kzlist.Count; i++)
184
+                    {
185
+                        if (i == 0)
186
+                            kzname = kzlist[i];
187
+                        else
188
+                            kzname = kzname + "," + kzlist[i];
189
+                    }
190
+                    TypedValue[] value_kz = new TypedValue[]
191
+                    {
192
+                    new TypedValue((int)DxfCode.LayerName,kzname)
193
+                    };
194
+                    SelectionFilter filter_kz = new SelectionFilter(value_kz);
195
+                    PromptSelectionResult psr_kz = ed.SelectAll(filter_kz);
196
+                    if (psr_kz.Status == PromptStatus.OK)
197
+                    {
198
+                        SelectionSet ss = psr_kz.Value;
199
+                        ObjectIdCollection idcoll = new ObjectIdCollection(ss.GetObjectIds());
200
+                        for (int i = 0; i < idcoll.Count; i++)
201
+                        {
202
+                            Polyline pll_rvrd = trans.GetObject(idcoll[i], OpenMode.ForWrite) as Polyline;
203
+                            Point3dCollection intersectionPoints = new Point3dCollection();
204
+                            pll.IntersectWith(pll_rvrd, Intersect.OnBothOperands, plane, intersectionPoints, IntPtr.Zero, IntPtr.Zero);
205
+                            if (intersectionPoints.Count > 0)
206
+                            {
207
+                                foreach (Point3d pt in intersectionPoints)
208
+                                {
209
+                                    pts1.Add(pt);
210
+                                }
211
+                            }
212
+                        }
213
+                        #region
214
+                        //if (pts.Count > 0)
215
+                        //{
216
+                        //    //按参数值排序交点
217
+                        //    List<double> paramList = new List<double>();
218
+                        //    foreach (Point3d breakPoint in pts)
219
+                        //    {
220
+                        //        double param = pll.GetParameterAtPoint(breakPoint);
221
+                        //        paramList.Add(param);
222
+                        //    }
223
+                        //    paramList.Sort();
224
+
225
+                        //    //存储分割后的多段线
226
+                        //    List<Polyline> newPlls = new List<Polyline>();
227
+
228
+                        //    // 初始化第一条多段线
229
+                        //    Polyline currentPline = new Polyline();
230
+                        //    currentPline.SetDatabaseDefaults();
231
+                        //    currentPline.Layer = pll.Layer;
232
+                        //    currentPline.Color = pll.Color;
233
+
234
+                        //    // 遍历多段线的节点
235
+                        //    for (int i = 0; i < pll.NumberOfVertices; i++)
236
+                        //    {
237
+                        //        Point2d point = pll.GetPoint2dAt(i);
238
+                        //        double bulge = pll.GetBulgeAt(i);
239
+
240
+                        //        // 添加节点到当前多段线
241
+                        //        currentPline.AddVertexAt(currentPline.NumberOfVertices, point, bulge, 0, 0);
242
+
243
+                        //        // 检查是否需要分割
244
+                        //        if (paramList.Count > 0 && i == (int)paramList[0])
245
+                        //        {
246
+                        //            // 检查当前节点和下一个节点之间是否有交点
247
+                        //            while (paramList.Count > 0 && paramList[0] >= i && paramList[0] < i + 1)
248
+                        //            {
249
+                        //                // 计算交点处的精确位置
250
+                        //                double param = paramList[0];
251
+                        //                double dist = pll.GetDistanceAtParameter(param)- cut_dist;
252
+                        //                Point3d splitPoint3d = pll.GetPointAtDist(dist);
253
+                        //                Point2d splitPoint = new Point2d(splitPoint3d.X, splitPoint3d.Y);
254
+                        //                kz_pts.Add(splitPoint3d);
255
+
256
+                        //                // 添加当前多段线到结果列表
257
+                        //                currentPline.AddVertexAt(currentPline.NumberOfVertices, splitPoint, 0, 0, 0);
258
+                        //                BlockTable bt = (BlockTable)(trans.GetObject(db.BlockTableId, OpenMode.ForRead));
259
+                        //                BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
260
+                        //                btr.AppendEntity(currentPline);
261
+                        //                trans.AddNewlyCreatedDBObject(currentPline, true);
262
+                        //                newPlls.Add(currentPline);
263
+
264
+                        //                // 初始化下一条多段线
265
+                        //                currentPline = new Polyline();
266
+                        //                currentPline.SetDatabaseDefaults();
267
+                        //                currentPline.Layer = pll.Layer;
268
+                        //                currentPline.Color = pll.Color;
269
+
270
+                        //                // 添加分割点作为下一条多段线的起点
271
+                        //                double dist1 = pll.GetDistanceAtParameter(param) + cut_dist;
272
+                        //                Point3d splitPoint3d1 = pll.GetPointAtDist(dist1);
273
+                        //                Point2d splitPoint1 = new Point2d(splitPoint3d1.X, splitPoint3d1.Y);
274
+                        //                kz_pts.Add(splitPoint3d1);
275
+                        //                currentPline.AddVertexAt(0, splitPoint1, 0, 0, 0);
276
+
277
+                        //                // 移除已处理的交点
278
+                        //                paramList.RemoveAt(0);
279
+                        //            }
280
+                        //        }
281
+                        //    }
282
+
283
+                        //    if (currentPline.NumberOfVertices > 0)
284
+                        //    {
285
+                        //        BlockTable bt = (BlockTable)(trans.GetObject(db.BlockTableId, OpenMode.ForRead));
286
+                        //        BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
287
+                        //        btr.AppendEntity(currentPline);
288
+                        //        trans.AddNewlyCreatedDBObject(currentPline, true);
289
+                        //        newPlls.Add(currentPline);
290
+                        //    }
291
+                        //    pll.Erase();
292
+
293
+
294
+                        //    for (int i = 0; i < newPlls.Count; i++)
295
+                        //    {
296
+                        //        if (kz_pts.Contains(newPlls[i].StartPoint) &&
297
+                        //            kz_pts.Contains(newPlls[i].EndPoint) &&
298
+                        //            i % 2 == 1)
299
+                        //            newPlls[i].Layer = "待删除等高线";
300
+                        //        else if (newPlls.Count == 2)
301
+                        //        {
302
+                        //            if (newPlls[0].Length < newPlls[1].Length)
303
+                        //                newPlls[0].Layer = "待删除等高线";
304
+                        //            else
305
+                        //                newPlls[1].Layer = "待删除等高线";
306
+                        //        }
307
+                        //    }
308
+                        //}
309
+                        #endregion
310
+                    }
311
+                }
312
+
313
+
314
+
315
+                if (pts.Count > 0)
316
+                {
317
+                    //创建新图层
318
+                    LayerControl layerscontrol = new LayerControl();
319
+                    string layname = "待删除等高线";
320
+                    if (!layerscontrol.haslayername(layname))
321
+                    {
322
+                        colorgb col = new colorgb(255, 0, 255);
323
+                        layerscontrol.creatlayer(layname, col);
324
+                        layerscontrol.movelayertofront(layname);
325
+                    }
326
+                    else
327
+                        layerscontrol.movelayertofront(layname);
328
+
329
+
330
+                    //按参数值排序交点
331
+                    List<double> paramList = new List<double>();
332
+                    List<double> kzparam = new List<double>();
333
+                    foreach (Point3d breakPoint in pts)
334
+                    {
335
+                        double param = pll.GetParameterAtPoint(breakPoint);
336
+                        if (pts1.Contains(breakPoint))
337
+                            kzparam.Add(param);
338
+                        paramList.Add(param);
339
+                    }
340
+                    paramList.Sort();
341
+
342
+                    //存储分割后的多段线
343
+                    List<Polyline> newPlls = new List<Polyline>();
344
+
345
+                    // 初始化第一条多段线
346
+                    Polyline currentPline = new Polyline();
347
+                    currentPline.SetDatabaseDefaults();
348
+                    currentPline.Layer = pll.Layer;
349
+                    currentPline.Color = pll.Color;
350
+
351
+                    // 遍历多段线的节点
352
+                    for (int i = 0; i < pll.NumberOfVertices; i++)
353
+                    {
354
+                        Point2d point = pll.GetPoint2dAt(i);
355
+                        double bulge = pll.GetBulgeAt(i);
356
+
357
+                        // 添加节点到当前多段线
358
+                        currentPline.AddVertexAt(currentPline.NumberOfVertices, point, bulge, 0, 0);
359
+
360
+                        // 检查是否需要分割
361
+                        if (paramList.Count > 0 && i == (int)paramList[0])
362
+                        {
363
+                            // 检查当前节点和下一个节点之间是否有交点
364
+                            while (paramList.Count > 0 && paramList[0] >= i && paramList[0] < i + 1)
365
+                            {
366
+                                // 计算交点处的精确位置
367
+                                double param = paramList[0];
368
+                                double dist;
369
+                                if (kzparam.Contains(param))
370
+                                {
371
+                                    dist = pll.GetDistanceAtParameter(param) - cut_dist;
372
+                                    kz_pts.Add(pll.GetPointAtDist(dist));
373
+                                }
374
+                                else
375
+                                    dist = pll.GetDistanceAtParameter(param);
376
+                                Point3d splitPoint3d = pll.GetPointAtDist(dist);
377
+                                Point2d splitPoint = new Point2d(splitPoint3d.X, splitPoint3d.Y);
378
+
379
+                                // 添加当前多段线到结果列表
380
+                                currentPline.AddVertexAt(currentPline.NumberOfVertices, splitPoint, 0, 0, 0);
381
+                                BlockTable bt = (BlockTable)(trans.GetObject(db.BlockTableId, OpenMode.ForRead));
382
+                                BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
383
+                                btr.AppendEntity(currentPline);
384
+                                trans.AddNewlyCreatedDBObject(currentPline, true);
385
+                                newPlls.Add(currentPline);
386
+
387
+                                // 初始化下一条多段线
388
+                                currentPline = new Polyline();
389
+                                currentPline.SetDatabaseDefaults();
390
+                                currentPline.Layer = pll.Layer;
391
+                                currentPline.Color = pll.Color;
392
+
393
+                                // 添加分割点作为下一条多段线的起点
394
+                                if (kzparam.Contains(param))
395
+                                {
396
+                                    double dist1 = pll.GetDistanceAtParameter(param) + cut_dist;
397
+                                    Point3d splitPoint3d1 = pll.GetPointAtDist(dist1);
398
+                                    Point2d splitPoint1 = new Point2d(splitPoint3d1.X, splitPoint3d1.Y);
399
+                                    kz_pts.Add(splitPoint3d1);
400
+                                    currentPline.AddVertexAt(0, splitPoint1, 0, 0, 0);
401
+                                }
402
+                                else
403
+                                    currentPline.AddVertexAt(0, splitPoint, 0, 0, 0);
404
+
405
+                                // 移除已处理的交点
406
+                                paramList.RemoveAt(0);
407
+                            }
408
+                        }
409
+                    }
410
+
411
+                    if (currentPline.NumberOfVertices > 0)
412
+                    {
413
+                        BlockTable bt = (BlockTable)(trans.GetObject(db.BlockTableId, OpenMode.ForRead));
414
+                        BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
415
+                        btr.AppendEntity(currentPline);
416
+                        trans.AddNewlyCreatedDBObject(currentPline, true);
417
+                        newPlls.Add(currentPline);
418
+                    }
419
+                    pll.Erase();
420
+
421
+
422
+                    for (int i = 0; i < newPlls.Count; i++)
423
+                    {
424
+                        if (newPlls.Count == 2)
425
+                        {
426
+                            if (newPlls[0].Length < newPlls[1].Length)
427
+                                newPlls[0].Layer = "待删除等高线";
428
+                            else
429
+                                newPlls[1].Layer = "待删除等高线";
430
+                        }
431
+                        else if (pts.Contains(newPlls[i].StartPoint) &&
432
+                            pts.Contains(newPlls[i].EndPoint) &&
433
+                            i % 2 == 1)
434
+                            newPlls[i].Layer = "待删除等高线";
435
+                        else if (kz_pts.Contains(newPlls[i].StartPoint) &&
436
+                            kz_pts.Contains(newPlls[i].EndPoint) &&
437
+                            i % 2 == 1)
438
+                            newPlls[i].Layer = "待删除等高线";
439
+                    }
440
+                }
441
+
442
+                trans.Commit();
443
+            }
444
+        }
445
+
446
+        /// <summary>
447
+        /// 缩放视图以便搜索
448
+        /// </summary>
449
+        private void ZoomView(Editor edit, Point3d pt1, Point3d pt2)
450
+        {
451
+            var x_min = Math.Min(pt1.X, pt2.X);
452
+            var y_min = Math.Min(pt1.Y, pt2.Y);
453
+            using (ViewTableRecord currview1 = edit.GetCurrentView())
454
+            {
455
+                currview1.CenterPoint = new Point2d(Math.Abs((pt2.X - pt1.X) / 2) + x_min,
456
+                                                    Math.Abs((pt2.Y - pt1.Y) / 2) + y_min);
457
+                currview1.Width = Math.Abs(pt2.X - pt1.X + 1);
458
+                currview1.Height = Math.Abs(pt2.Y - pt1.Y + 1);
459
+                edit.SetCurrentView(currview1);
460
+            }
461
+        }
462
+    }
463
+}

+ 176
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.Designer.cs Zobrazit soubor

@@ -0,0 +1,176 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class Dgxthrorvrd_Form
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.label2 = new System.Windows.Forms.Label();
34
+            this.checkedListBox_dgx = new System.Windows.Forms.CheckedListBox();
35
+            this.checkedListBox_rvrd = new System.Windows.Forms.CheckedListBox();
36
+            this.button_OK = new System.Windows.Forms.Button();
37
+            this.button_Cancel = new System.Windows.Forms.Button();
38
+            this.label3 = new System.Windows.Forms.Label();
39
+            this.checkedListBox_kz = new System.Windows.Forms.CheckedListBox();
40
+            this.label4 = new System.Windows.Forms.Label();
41
+            this.comboBox_blc = new System.Windows.Forms.ComboBox();
42
+            this.SuspendLayout();
43
+            // 
44
+            // label1
45
+            // 
46
+            this.label1.AutoSize = true;
47
+            this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
48
+            this.label1.Location = new System.Drawing.Point(44, 75);
49
+            this.label1.Name = "label1";
50
+            this.label1.Size = new System.Drawing.Size(127, 15);
51
+            this.label1.TabIndex = 0;
52
+            this.label1.Text = "等高线所在图层:";
53
+            // 
54
+            // label2
55
+            // 
56
+            this.label2.AutoSize = true;
57
+            this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
58
+            this.label2.Location = new System.Drawing.Point(196, 75);
59
+            this.label2.Name = "label2";
60
+            this.label2.Size = new System.Drawing.Size(172, 15);
61
+            this.label2.TabIndex = 1;
62
+            this.label2.Text = "河流道路房屋所在图层:";
63
+            // 
64
+            // checkedListBox_dgx
65
+            // 
66
+            this.checkedListBox_dgx.FormattingEnabled = true;
67
+            this.checkedListBox_dgx.Location = new System.Drawing.Point(47, 103);
68
+            this.checkedListBox_dgx.Name = "checkedListBox_dgx";
69
+            this.checkedListBox_dgx.Size = new System.Drawing.Size(124, 164);
70
+            this.checkedListBox_dgx.TabIndex = 2;
71
+            // 
72
+            // checkedListBox_rvrd
73
+            // 
74
+            this.checkedListBox_rvrd.FormattingEnabled = true;
75
+            this.checkedListBox_rvrd.Location = new System.Drawing.Point(211, 103);
76
+            this.checkedListBox_rvrd.Name = "checkedListBox_rvrd";
77
+            this.checkedListBox_rvrd.Size = new System.Drawing.Size(124, 164);
78
+            this.checkedListBox_rvrd.TabIndex = 3;
79
+            // 
80
+            // button_OK
81
+            // 
82
+            this.button_OK.Location = new System.Drawing.Point(175, 295);
83
+            this.button_OK.Name = "button_OK";
84
+            this.button_OK.Size = new System.Drawing.Size(75, 31);
85
+            this.button_OK.TabIndex = 4;
86
+            this.button_OK.Text = "确 认";
87
+            this.button_OK.UseVisualStyleBackColor = true;
88
+            this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
89
+            // 
90
+            // button_Cancel
91
+            // 
92
+            this.button_Cancel.Location = new System.Drawing.Point(333, 295);
93
+            this.button_Cancel.Name = "button_Cancel";
94
+            this.button_Cancel.Size = new System.Drawing.Size(75, 30);
95
+            this.button_Cancel.TabIndex = 5;
96
+            this.button_Cancel.Text = "取 消";
97
+            this.button_Cancel.UseVisualStyleBackColor = true;
98
+            // 
99
+            // label3
100
+            // 
101
+            this.label3.AutoSize = true;
102
+            this.label3.Location = new System.Drawing.Point(385, 75);
103
+            this.label3.Name = "label3";
104
+            this.label3.Size = new System.Drawing.Size(112, 15);
105
+            this.label3.TabIndex = 6;
106
+            this.label3.Text = "坎子所在图层:";
107
+            // 
108
+            // checkedListBox_kz
109
+            // 
110
+            this.checkedListBox_kz.FormattingEnabled = true;
111
+            this.checkedListBox_kz.Location = new System.Drawing.Point(388, 103);
112
+            this.checkedListBox_kz.Name = "checkedListBox_kz";
113
+            this.checkedListBox_kz.Size = new System.Drawing.Size(124, 164);
114
+            this.checkedListBox_kz.TabIndex = 7;
115
+            // 
116
+            // label4
117
+            // 
118
+            this.label4.AutoSize = true;
119
+            this.label4.Location = new System.Drawing.Point(47, 26);
120
+            this.label4.Name = "label4";
121
+            this.label4.Size = new System.Drawing.Size(67, 15);
122
+            this.label4.TabIndex = 8;
123
+            this.label4.Text = "比例尺:";
124
+            // 
125
+            // comboBox_blc
126
+            // 
127
+            this.comboBox_blc.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
128
+            this.comboBox_blc.FormattingEnabled = true;
129
+            this.comboBox_blc.Items.AddRange(new object[] {
130
+            "1:500",
131
+            "1:1000",
132
+            "1:2000",
133
+            "1:5000",
134
+            "1:10000"});
135
+            this.comboBox_blc.Location = new System.Drawing.Point(120, 23);
136
+            this.comboBox_blc.Name = "comboBox_blc";
137
+            this.comboBox_blc.Size = new System.Drawing.Size(156, 23);
138
+            this.comboBox_blc.TabIndex = 9;
139
+            // 
140
+            // Dgxthrorvrd_Form
141
+            // 
142
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
143
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
144
+            this.ClientSize = new System.Drawing.Size(598, 349);
145
+            this.Controls.Add(this.comboBox_blc);
146
+            this.Controls.Add(this.label4);
147
+            this.Controls.Add(this.checkedListBox_kz);
148
+            this.Controls.Add(this.label3);
149
+            this.Controls.Add(this.button_Cancel);
150
+            this.Controls.Add(this.button_OK);
151
+            this.Controls.Add(this.checkedListBox_rvrd);
152
+            this.Controls.Add(this.checkedListBox_dgx);
153
+            this.Controls.Add(this.label2);
154
+            this.Controls.Add(this.label1);
155
+            this.Name = "Dgxthrorvrd_Form";
156
+            this.Text = "过河流道路的等高线裁剪";
157
+            this.Load += new System.EventHandler(this.Dgxthrorvrd_Form_Load);
158
+            this.ResumeLayout(false);
159
+            this.PerformLayout();
160
+
161
+        }
162
+
163
+        #endregion
164
+
165
+        private System.Windows.Forms.Label label1;
166
+        private System.Windows.Forms.Label label2;
167
+        private System.Windows.Forms.CheckedListBox checkedListBox_dgx;
168
+        private System.Windows.Forms.CheckedListBox checkedListBox_rvrd;
169
+        private System.Windows.Forms.Button button_OK;
170
+        private System.Windows.Forms.Button button_Cancel;
171
+        private System.Windows.Forms.Label label3;
172
+        private System.Windows.Forms.CheckedListBox checkedListBox_kz;
173
+        private System.Windows.Forms.Label label4;
174
+        private System.Windows.Forms.ComboBox comboBox_blc;
175
+    }
176
+}

+ 96
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.cs Zobrazit soubor

@@ -0,0 +1,96 @@
1
+using GrxCAD.DatabaseServices;
2
+using System;
3
+using System.Collections.Generic;
4
+using System.ComponentModel;
5
+using System.Data;
6
+using System.Drawing;
7
+using System.Linq;
8
+using System.Text;
9
+using System.Threading.Tasks;
10
+using System.Windows.Forms;
11
+
12
+namespace HCTools
13
+{
14
+    public partial class Dgxthrorvrd_Form : Form
15
+    {
16
+        public Dgxthrorvrd_Form()
17
+        {
18
+            InitializeComponent();
19
+        }
20
+
21
+        private void Dgxthrorvrd_Form_Load(object sender, EventArgs e)
22
+        {
23
+            Database database = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
24
+            using (Transaction traction = database.TransactionManager.StartTransaction())
25
+            {
26
+                //存放所有图层名
27
+                List<string> alllayername = new List<string>();
28
+                LayerTable layertable = traction.GetObject(database.LayerTableId, OpenMode.ForRead) as LayerTable;
29
+                foreach (ObjectId objid in layertable)
30
+                {
31
+                    LayerTableRecord layertablerecord = traction.GetObject(objid, OpenMode.ForRead) as LayerTableRecord;
32
+                    alllayername.Add(layertablerecord.Name);
33
+                }
34
+                alllayername.Sort();
35
+
36
+                for (int i = 0; i < alllayername.Count; i++)
37
+                {
38
+                    this.checkedListBox_dgx.Items.Add(alllayername[i]);
39
+                    this.checkedListBox_rvrd.Items.Add(alllayername[i]);
40
+                    this.checkedListBox_kz.Items.Add(alllayername[i]);
41
+                }
42
+            }
43
+        }
44
+
45
+        private void button_OK_Click(object sender, EventArgs e)
46
+        {
47
+            if (comboBox_blc.SelectedItem == null)
48
+            {
49
+                MessageBox.Show("请选择比例尺!", "提示");
50
+                return;
51
+            }
52
+            if (checkedListBox_dgx.CheckedItems.Count == 0)
53
+            {
54
+                MessageBox.Show("等高线图层不能为空!", "提示");
55
+                return;
56
+            }
57
+            if (checkedListBox_rvrd.CheckedItems.Count == 0&&
58
+                checkedListBox_kz.CheckedItems.Count == 0)
59
+            {
60
+                MessageBox.Show("河流道路房屋图层和坎子图层不能都为空!", "提示");
61
+                return;
62
+            }
63
+            List<string> dgx = new List<string>();//存放等高线
64
+            List<string> rvrd = new List<string>();//存放河流道路房屋图层
65
+            List<string> kz = new List<string>();//存放坎子图层
66
+
67
+            for (int i = 0; i < checkedListBox_dgx.CheckedItems.Count; i++)
68
+            {
69
+                dgx.Add(checkedListBox_dgx.CheckedItems[i].ToString());
70
+            }
71
+            if (checkedListBox_rvrd.CheckedItems.Count != 0)
72
+            {
73
+                for (int i = 0; i < checkedListBox_rvrd.CheckedItems.Count; i++)
74
+                {
75
+                    rvrd.Add(checkedListBox_rvrd.CheckedItems[i].ToString());
76
+                }
77
+                Dgxthrorvrd.rvrdlist = rvrd;
78
+            }
79
+            if (checkedListBox_kz.CheckedItems.Count != 0)
80
+            {
81
+                for (int i = 0; i < checkedListBox_kz.CheckedItems.Count; i++)
82
+                {
83
+                    kz.Add(checkedListBox_kz.CheckedItems[i].ToString());
84
+                }
85
+                Dgxthrorvrd.kzlist = kz;
86
+            }
87
+            Dgxthrorvrd.dgxlist = dgx;
88
+            Dgxthrorvrd.blc = Convert.ToInt32(comboBox_blc.SelectedItem.ToString().Split(':')[1]);
89
+            Dgxthrorvrd cutdgx = new Dgxthrorvrd();
90
+            cutdgx.DgxCut();
91
+            this.Close();
92
+        }
93
+
94
+
95
+    }
96
+}

+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/Dgxthrorvrd_Form.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 3
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/FodyWeavers.xml Zobrazit soubor

@@ -0,0 +1,3 @@
1
+<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
2
+  <Costura />
3
+</Weavers>

+ 141
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/FodyWeavers.xsd Zobrazit soubor

@@ -0,0 +1,141 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+  <!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
4
+  <xs:element name="Weavers">
5
+    <xs:complexType>
6
+      <xs:all>
7
+        <xs:element name="Costura" minOccurs="0" maxOccurs="1">
8
+          <xs:complexType>
9
+            <xs:all>
10
+              <xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
11
+                <xs:annotation>
12
+                  <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
13
+                </xs:annotation>
14
+              </xs:element>
15
+              <xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
16
+                <xs:annotation>
17
+                  <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
18
+                </xs:annotation>
19
+              </xs:element>
20
+              <xs:element minOccurs="0" maxOccurs="1" name="ExcludeRuntimeAssemblies" type="xs:string">
21
+                <xs:annotation>
22
+                  <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
23
+                </xs:annotation>
24
+              </xs:element>
25
+              <xs:element minOccurs="0" maxOccurs="1" name="IncludeRuntimeAssemblies" type="xs:string">
26
+                <xs:annotation>
27
+                  <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
28
+                </xs:annotation>
29
+              </xs:element>
30
+              <xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
31
+                <xs:annotation>
32
+                  <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
33
+                </xs:annotation>
34
+              </xs:element>
35
+              <xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
36
+                <xs:annotation>
37
+                  <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
38
+                </xs:annotation>
39
+              </xs:element>
40
+              <xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
41
+                <xs:annotation>
42
+                  <xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
43
+                </xs:annotation>
44
+              </xs:element>
45
+            </xs:all>
46
+            <xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
47
+              <xs:annotation>
48
+                <xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
49
+              </xs:annotation>
50
+            </xs:attribute>
51
+            <xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
52
+              <xs:annotation>
53
+                <xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
54
+              </xs:annotation>
55
+            </xs:attribute>
56
+            <xs:attribute name="IncludeRuntimeReferences" type="xs:boolean">
57
+              <xs:annotation>
58
+                <xs:documentation>Controls if runtime assemblies are also embedded.</xs:documentation>
59
+              </xs:annotation>
60
+            </xs:attribute>
61
+            <xs:attribute name="UseRuntimeReferencePaths" type="xs:boolean">
62
+              <xs:annotation>
63
+                <xs:documentation>Controls whether the runtime assemblies are embedded with their full path or only with their assembly name.</xs:documentation>
64
+              </xs:annotation>
65
+            </xs:attribute>
66
+            <xs:attribute name="DisableCompression" type="xs:boolean">
67
+              <xs:annotation>
68
+                <xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
69
+              </xs:annotation>
70
+            </xs:attribute>
71
+            <xs:attribute name="DisableCleanup" type="xs:boolean">
72
+              <xs:annotation>
73
+                <xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
74
+              </xs:annotation>
75
+            </xs:attribute>
76
+            <xs:attribute name="LoadAtModuleInit" type="xs:boolean">
77
+              <xs:annotation>
78
+                <xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
79
+              </xs:annotation>
80
+            </xs:attribute>
81
+            <xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
82
+              <xs:annotation>
83
+                <xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
84
+              </xs:annotation>
85
+            </xs:attribute>
86
+            <xs:attribute name="ExcludeAssemblies" type="xs:string">
87
+              <xs:annotation>
88
+                <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
89
+              </xs:annotation>
90
+            </xs:attribute>
91
+            <xs:attribute name="IncludeAssemblies" type="xs:string">
92
+              <xs:annotation>
93
+                <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
94
+              </xs:annotation>
95
+            </xs:attribute>
96
+            <xs:attribute name="ExcludeRuntimeAssemblies" type="xs:string">
97
+              <xs:annotation>
98
+                <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
99
+              </xs:annotation>
100
+            </xs:attribute>
101
+            <xs:attribute name="IncludeRuntimeAssemblies" type="xs:string">
102
+              <xs:annotation>
103
+                <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
104
+              </xs:annotation>
105
+            </xs:attribute>
106
+            <xs:attribute name="Unmanaged32Assemblies" type="xs:string">
107
+              <xs:annotation>
108
+                <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
109
+              </xs:annotation>
110
+            </xs:attribute>
111
+            <xs:attribute name="Unmanaged64Assemblies" type="xs:string">
112
+              <xs:annotation>
113
+                <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
114
+              </xs:annotation>
115
+            </xs:attribute>
116
+            <xs:attribute name="PreloadOrder" type="xs:string">
117
+              <xs:annotation>
118
+                <xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
119
+              </xs:annotation>
120
+            </xs:attribute>
121
+          </xs:complexType>
122
+        </xs:element>
123
+      </xs:all>
124
+      <xs:attribute name="VerifyAssembly" type="xs:boolean">
125
+        <xs:annotation>
126
+          <xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
127
+        </xs:annotation>
128
+      </xs:attribute>
129
+      <xs:attribute name="VerifyIgnoreCodes" type="xs:string">
130
+        <xs:annotation>
131
+          <xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
132
+        </xs:annotation>
133
+      </xs:attribute>
134
+      <xs:attribute name="GenerateXsd" type="xs:boolean">
135
+        <xs:annotation>
136
+          <xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
137
+        </xs:annotation>
138
+      </xs:attribute>
139
+    </xs:complexType>
140
+  </xs:element>
141
+</xs:schema>

+ 114
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.Designer.cs Zobrazit soubor

@@ -0,0 +1,114 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class GCDdelete_Form
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.comboBox1 = new System.Windows.Forms.ComboBox();
34
+            this.button1 = new System.Windows.Forms.Button();
35
+            this.label2 = new System.Windows.Forms.Label();
36
+            this.comboBox_blc = new System.Windows.Forms.ComboBox();
37
+            this.SuspendLayout();
38
+            // 
39
+            // label1
40
+            // 
41
+            this.label1.AutoSize = true;
42
+            this.label1.Location = new System.Drawing.Point(52, 93);
43
+            this.label1.Name = "label1";
44
+            this.label1.Size = new System.Drawing.Size(127, 15);
45
+            this.label1.TabIndex = 0;
46
+            this.label1.Text = "高程点所在图层:";
47
+            // 
48
+            // comboBox1
49
+            // 
50
+            this.comboBox1.FormattingEnabled = true;
51
+            this.comboBox1.Location = new System.Drawing.Point(185, 90);
52
+            this.comboBox1.Name = "comboBox1";
53
+            this.comboBox1.Size = new System.Drawing.Size(172, 23);
54
+            this.comboBox1.TabIndex = 1;
55
+            // 
56
+            // button1
57
+            // 
58
+            this.button1.Location = new System.Drawing.Point(176, 135);
59
+            this.button1.Name = "button1";
60
+            this.button1.Size = new System.Drawing.Size(67, 29);
61
+            this.button1.TabIndex = 2;
62
+            this.button1.Text = "确 定";
63
+            this.button1.UseVisualStyleBackColor = true;
64
+            this.button1.Click += new System.EventHandler(this.button1_Click);
65
+            // 
66
+            // label2
67
+            // 
68
+            this.label2.AutoSize = true;
69
+            this.label2.Location = new System.Drawing.Point(112, 41);
70
+            this.label2.Name = "label2";
71
+            this.label2.Size = new System.Drawing.Size(67, 15);
72
+            this.label2.TabIndex = 3;
73
+            this.label2.Text = "比例尺:";
74
+            // 
75
+            // comboBox_blc
76
+            // 
77
+            this.comboBox_blc.FormattingEnabled = true;
78
+            this.comboBox_blc.Items.AddRange(new object[] {
79
+            "1:500",
80
+            "1:2000",
81
+            "1:5000",
82
+            "1:10000"});
83
+            this.comboBox_blc.Location = new System.Drawing.Point(185, 38);
84
+            this.comboBox_blc.Name = "comboBox_blc";
85
+            this.comboBox_blc.Size = new System.Drawing.Size(172, 23);
86
+            this.comboBox_blc.TabIndex = 4;
87
+            // 
88
+            // GCDdelete_Form
89
+            // 
90
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
91
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
92
+            this.ClientSize = new System.Drawing.Size(427, 176);
93
+            this.Controls.Add(this.comboBox_blc);
94
+            this.Controls.Add(this.label2);
95
+            this.Controls.Add(this.button1);
96
+            this.Controls.Add(this.comboBox1);
97
+            this.Controls.Add(this.label1);
98
+            this.Name = "GCDdelete_Form";
99
+            this.Text = "删除整数值高程点";
100
+            this.Load += new System.EventHandler(this.GCDdelete_Form_Load);
101
+            this.ResumeLayout(false);
102
+            this.PerformLayout();
103
+
104
+        }
105
+
106
+        #endregion
107
+
108
+        private System.Windows.Forms.Label label1;
109
+        private System.Windows.Forms.ComboBox comboBox1;
110
+        private System.Windows.Forms.Button button1;
111
+        private System.Windows.Forms.Label label2;
112
+        private System.Windows.Forms.ComboBox comboBox_blc;
113
+    }
114
+}

+ 159
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.cs Zobrazit soubor

@@ -0,0 +1,159 @@
1
+using GrxCAD.DatabaseServices;
2
+using GrxCAD.EditorInput;
3
+using GrxCAD.Geometry;
4
+using System;
5
+using System.Collections.Generic;
6
+using System.ComponentModel;
7
+using System.Data;
8
+using System.Drawing;
9
+using System.Linq;
10
+using System.Text;
11
+using System.Threading.Tasks;
12
+using System.Windows.Forms;
13
+
14
+namespace HCTools
15
+{
16
+    public partial class GCDdelete_Form : Form
17
+    {
18
+        public GCDdelete_Form()
19
+        {
20
+            InitializeComponent();
21
+        }
22
+        string lyr = "";
23
+        int blc = -999;
24
+
25
+        private void GCDdelete_Form_Load(object sender, EventArgs e)
26
+        {
27
+            this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
28
+            this.comboBox_blc.DropDownStyle = ComboBoxStyle.DropDownList;
29
+
30
+            //自动填充下拉框
31
+            Database database = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
32
+            using (Transaction traction = database.TransactionManager.StartTransaction())
33
+            {
34
+                //存放所有图层名
35
+                List<string> alllayername = new List<string>();
36
+                LayerTable layertable = traction.GetObject(database.LayerTableId, OpenMode.ForRead) as LayerTable;
37
+                foreach (ObjectId objid in layertable)
38
+                {
39
+                    LayerTableRecord layertablerecord = traction.GetObject(objid, OpenMode.ForRead) as LayerTableRecord;
40
+                    alllayername.Add(layertablerecord.Name);
41
+                }
42
+
43
+                alllayername.Sort();
44
+
45
+                for (int i = 0; i < alllayername.Count; i++)
46
+                {
47
+                    this.comboBox1.Items.Add(alllayername[i]);
48
+                }
49
+
50
+                if (alllayername.Contains("8300"))
51
+                {
52
+                    int index = alllayername.IndexOf("8300");
53
+                    this.comboBox1.SelectedIndex = index;
54
+                }
55
+                traction.Commit();
56
+            }
57
+        }
58
+
59
+        private void button1_Click(object sender, EventArgs e)
60
+        {
61
+            if (comboBox1.Text == "")
62
+            {
63
+                MessageBox.Show("请选择高程点所在图层!");
64
+                return;
65
+            }
66
+            if (comboBox_blc.Text == "")
67
+            {
68
+                MessageBox.Show("请选择比例尺所在图层!");
69
+                return;
70
+            }
71
+            string blctext = comboBox_blc.Text;
72
+            int blcindex = blctext.LastIndexOf(':');
73
+            string strblc = blctext.Substring(blcindex + 1);
74
+            blc = Convert.ToInt32(strblc);
75
+            lyr = comboBox1.Text;
76
+            deletegcd();
77
+        }
78
+
79
+        private void deletegcd()
80
+        {
81
+            Database db = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
82
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
83
+            //获取高程点
84
+            TypedValue[] typedvalue = new TypedValue[1];
85
+            typedvalue.SetValue(new TypedValue((int)DxfCode.LayerName, lyr), 0);
86
+            SelectionFilter selectionfilter = new SelectionFilter(typedvalue);
87
+            PromptSelectionResult psr = ed.SelectAll(selectionfilter);
88
+
89
+            if (psr.Status == PromptStatus.OK)
90
+            {
91
+                LayerControl layerscontrol = new LayerControl();
92
+                string layname = "整数值高程点";
93
+                if (layerscontrol.haslayername(layname) == false)
94
+                {
95
+                    colorgb col = new colorgb(255, 255, 0);
96
+                    layerscontrol.creatlayer(layname, col);
97
+                }
98
+
99
+
100
+                SelectionSet selectionset = psr.Value;
101
+                ObjectId[] obj = new ObjectId[selectionset.Count];
102
+                obj = selectionset.GetObjectIds();
103
+                for (int i = 0; i < obj.Length; i++)
104
+                {
105
+
106
+                    using (Transaction tran = db.TransactionManager.StartTransaction())
107
+                    {
108
+                        ObjectId objid = obj[i];
109
+
110
+                        //找到实体获取并判断高程
111
+                        Entity entity = (Entity)tran.GetObject(objid, OpenMode.ForWrite);
112
+
113
+                        if (entity is BlockReference)
114
+                        {
115
+                            BlockReference bref = (BlockReference)entity;
116
+                            double z = Math.Round(bref.Position.Z, 2, MidpointRounding.AwayFromZero);
117
+                            //判断四舍五入后是否为整数
118
+                            if (Math.Truncate(z) == Math.Round(z, MidpointRounding.AwayFromZero))
119
+                            {
120
+                                bref.Layer = "整数值高程点";
121
+                                //获取高程点旁的高程标注
122
+                                Point3d p1 = new Point3d(bref.Position.X - 4 * blc / 2000, bref.Position.Y - 4 * blc / 2000, 0);
123
+                                Point3d p2 = new Point3d(bref.Position.X + 4 * blc / 2000, bref.Position.Y + 4 * blc / 2000, 0);
124
+                                TypedValue[] typedvalue1 = new TypedValue[2];
125
+
126
+                                typedvalue1.SetValue(new TypedValue((int)DxfCode.Start, "Text"), 0);
127
+                                typedvalue1.SetValue(new TypedValue((int)DxfCode.LayerName, lyr), 1);
128
+
129
+                                SelectionFilter filter1 = new SelectionFilter(typedvalue1);
130
+                                PromptSelectionResult psr1 = ed.SelectCrossingWindow(p1, p2, filter1);
131
+
132
+                                if (psr1.Status == PromptStatus.OK)
133
+                                {
134
+                                    SelectionSet ss = psr1.Value;
135
+                                    ObjectId[] objids = new ObjectId[ss.Count];
136
+                                    objids = selectionset.GetObjectIds();
137
+                                    for (int ii = 0; ii < objids.Length; ii++)
138
+                                    {
139
+                                        ObjectId objid1 = objids[ii];
140
+                                        Entity ent = (Entity)tran.GetObject(objid1, OpenMode.ForWrite);
141
+                                        if(ent is DBText)
142
+                                        {
143
+                                            DBText txt = (DBText)ent;
144
+                                            if(Convert.ToDouble(txt.TextString)== Math.Round(bref.Position.Z, 2, MidpointRounding.AwayFromZero))
145
+                                                txt.Layer = "整数值高程点";
146
+                                        }
147
+                                    }
148
+                                }
149
+                            }
150
+                        }
151
+                        tran.Commit();
152
+                    }
153
+                }
154
+                ed.WriteMessage("删除完成\n");
155
+            }
156
+        }
157
+    }
158
+
159
+}

+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/GCDdelete_Form.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 144
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.Designer.cs Zobrazit soubor

@@ -0,0 +1,144 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class InsertDOMs_to_one
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.label2 = new System.Windows.Forms.Label();
34
+            this.textBox_dwg = new System.Windows.Forms.TextBox();
35
+            this.textBox_dom = new System.Windows.Forms.TextBox();
36
+            this.button_dwg = new System.Windows.Forms.Button();
37
+            this.button_dom = new System.Windows.Forms.Button();
38
+            this.checkedListBox_dom = new System.Windows.Forms.CheckedListBox();
39
+            this.button1 = new System.Windows.Forms.Button();
40
+            this.SuspendLayout();
41
+            // 
42
+            // label1
43
+            // 
44
+            this.label1.AutoSize = true;
45
+            this.label1.Location = new System.Drawing.Point(29, 40);
46
+            this.label1.Name = "label1";
47
+            this.label1.Size = new System.Drawing.Size(106, 15);
48
+            this.label1.TabIndex = 0;
49
+            this.label1.Text = "dwg所在位置:";
50
+            // 
51
+            // label2
52
+            // 
53
+            this.label2.AutoSize = true;
54
+            this.label2.Location = new System.Drawing.Point(30, 98);
55
+            this.label2.Name = "label2";
56
+            this.label2.Size = new System.Drawing.Size(106, 15);
57
+            this.label2.TabIndex = 1;
58
+            this.label2.Text = "dom所在位置:";
59
+            // 
60
+            // textBox_dwg
61
+            // 
62
+            this.textBox_dwg.Location = new System.Drawing.Point(139, 36);
63
+            this.textBox_dwg.Name = "textBox_dwg";
64
+            this.textBox_dwg.Size = new System.Drawing.Size(225, 25);
65
+            this.textBox_dwg.TabIndex = 2;
66
+            // 
67
+            // textBox_dom
68
+            // 
69
+            this.textBox_dom.Location = new System.Drawing.Point(139, 95);
70
+            this.textBox_dom.Name = "textBox_dom";
71
+            this.textBox_dom.Size = new System.Drawing.Size(225, 25);
72
+            this.textBox_dom.TabIndex = 3;
73
+            // 
74
+            // button_dwg
75
+            // 
76
+            this.button_dwg.Location = new System.Drawing.Point(382, 36);
77
+            this.button_dwg.Name = "button_dwg";
78
+            this.button_dwg.Size = new System.Drawing.Size(75, 27);
79
+            this.button_dwg.TabIndex = 4;
80
+            this.button_dwg.Text = "选 择";
81
+            this.button_dwg.UseVisualStyleBackColor = true;
82
+            this.button_dwg.Click += new System.EventHandler(this.button_dwg_Click);
83
+            // 
84
+            // button_dom
85
+            // 
86
+            this.button_dom.Location = new System.Drawing.Point(382, 95);
87
+            this.button_dom.Name = "button_dom";
88
+            this.button_dom.Size = new System.Drawing.Size(75, 29);
89
+            this.button_dom.TabIndex = 5;
90
+            this.button_dom.Text = "选 择";
91
+            this.button_dom.UseVisualStyleBackColor = true;
92
+            this.button_dom.Click += new System.EventHandler(this.button_dom_Click);
93
+            // 
94
+            // checkedListBox_dom
95
+            // 
96
+            this.checkedListBox_dom.FormattingEnabled = true;
97
+            this.checkedListBox_dom.Location = new System.Drawing.Point(33, 145);
98
+            this.checkedListBox_dom.Name = "checkedListBox_dom";
99
+            this.checkedListBox_dom.Size = new System.Drawing.Size(424, 224);
100
+            this.checkedListBox_dom.TabIndex = 6;
101
+            this.checkedListBox_dom.MouseDown += new System.Windows.Forms.MouseEventHandler(this.checkedListBox_dom_MouseDown);
102
+            // 
103
+            // button1
104
+            // 
105
+            this.button1.Location = new System.Drawing.Point(192, 385);
106
+            this.button1.Name = "button1";
107
+            this.button1.Size = new System.Drawing.Size(83, 36);
108
+            this.button1.TabIndex = 7;
109
+            this.button1.Text = "确 定";
110
+            this.button1.UseVisualStyleBackColor = true;
111
+            this.button1.Click += new System.EventHandler(this.button1_Click);
112
+            // 
113
+            // InsertDOMs_to_one
114
+            // 
115
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
116
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
117
+            this.ClientSize = new System.Drawing.Size(482, 447);
118
+            this.Controls.Add(this.button1);
119
+            this.Controls.Add(this.checkedListBox_dom);
120
+            this.Controls.Add(this.button_dom);
121
+            this.Controls.Add(this.button_dwg);
122
+            this.Controls.Add(this.textBox_dom);
123
+            this.Controls.Add(this.textBox_dwg);
124
+            this.Controls.Add(this.label2);
125
+            this.Controls.Add(this.label1);
126
+            this.Name = "InsertDOMs_to_one";
127
+            this.Text = "批量插入图片(多对一)";
128
+            this.ResumeLayout(false);
129
+            this.PerformLayout();
130
+
131
+        }
132
+
133
+        #endregion
134
+
135
+        private System.Windows.Forms.Label label1;
136
+        private System.Windows.Forms.Label label2;
137
+        private System.Windows.Forms.TextBox textBox_dwg;
138
+        private System.Windows.Forms.TextBox textBox_dom;
139
+        private System.Windows.Forms.Button button_dwg;
140
+        private System.Windows.Forms.Button button_dom;
141
+        private System.Windows.Forms.CheckedListBox checkedListBox_dom;
142
+        private System.Windows.Forms.Button button1;
143
+    }
144
+}

+ 226
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.cs Zobrazit soubor

@@ -0,0 +1,226 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Data;
5
+using System.Drawing;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Threading.Tasks;
9
+using System.Windows.Forms;
10
+using System.IO;
11
+using GrxCAD.ApplicationServices;
12
+using GrxCAD.DatabaseServices;
13
+using GrxCAD.EditorInput;
14
+using GrxCAD.Geometry;
15
+using GrxCAD.Colors;
16
+
17
+namespace HCTools
18
+{
19
+    public partial class InsertDOMs_to_one : Form
20
+    {
21
+        public InsertDOMs_to_one()
22
+        {
23
+            InitializeComponent();
24
+        }
25
+
26
+        private void button_dwg_Click(object sender, EventArgs e)
27
+        {
28
+            OpenFileDialog openFileDialog = new OpenFileDialog();
29
+            // 设置对话框属性
30
+            openFileDialog.Title = "选择文件";                   // 对话框标题
31
+            openFileDialog.Filter = "文本文件|*.dwg|所有文件|*.*"; // 文件类型筛选
32
+            openFileDialog.InitialDirectory = @"C:\";           // 初始目录
33
+            openFileDialog.Multiselect = false;                 // 是否允许多选
34
+
35
+            // 显示对话框并检查用户是否点击"确定"
36
+            if (openFileDialog.ShowDialog() == DialogResult.OK)
37
+            {
38
+                // 显示选中的文件路径
39
+                textBox_dwg.Text = openFileDialog.FileName;
40
+            }
41
+            else
42
+                return; // 用户取消选择
43
+        }
44
+
45
+        private void button_dom_Click(object sender, EventArgs e)
46
+        {
47
+            FolderBrowserDialog open = new FolderBrowserDialog();
48
+            open.Description = "请选择文件夹";
49
+            if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
50
+            {
51
+                textBox_dom.Text = open.SelectedPath;
52
+                string[] tifFiles = Directory.GetFiles(open.SelectedPath, "*.tif", SearchOption.TopDirectoryOnly);
53
+                if (tifFiles.Length == 0)
54
+                {
55
+                    MessageBox.Show("未找到 .tif 文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
56
+                    return;
57
+                }
58
+                // 清空 CheckedListBox
59
+                checkedListBox_dom.Items.Clear();
60
+
61
+                // 添加文件到 CheckedListBox(仅显示文件名,不含路径)
62
+                foreach (string file in tifFiles)
63
+                {
64
+                    checkedListBox_dom.Items.Add(Path.GetFileName(file));
65
+                }
66
+            }
67
+        }
68
+
69
+        private void checkedListBox_dom_MouseDown(object sender, MouseEventArgs e)
70
+        {
71
+            // 获取鼠标点击的项索引
72
+            int index = checkedListBox_dom.IndexFromPoint(e.Location);
73
+
74
+            // 如果点击有效项(不是空白区域)
75
+            if (index != ListBox.NoMatches)
76
+            {
77
+                // 切换勾选状态
78
+                bool isChecked = checkedListBox_dom.GetItemChecked(index);
79
+                checkedListBox_dom.SetItemChecked(index, !isChecked);
80
+            }
81
+        }
82
+
83
+        private void button1_Click(object sender, EventArgs e)
84
+        {
85
+            if (checkedListBox_dom.CheckedItems.Count != 0)
86
+            {
87
+                Document doc = GrxCAD.ApplicationServices.Application.DocumentManager.Add(textBox_dwg.Text);
88
+                GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = doc;
89
+                for (int i = 0; i < checkedListBox_dom.Items.Count; i++)
90
+                {
91
+                    if (checkedListBox_dom.GetItemChecked(i))
92
+                    {
93
+                        string fileName = checkedListBox_dom.Items[i].ToString();
94
+                        string tifpath = textBox_dom.Text + "//" + fileName;
95
+                        string tfwpath = tifpath.Replace(".tif", ".tfw");
96
+                        InsertDOMs(tifpath, tfwpath, doc);
97
+                    }
98
+                }
99
+                //浩辰2020不能用doc.CloseandSave,它只能close不save
100
+                doc.Database.Save();
101
+                doc.CloseAndDiscard();
102
+            }
103
+        }
104
+
105
+        private void InsertDOMs(string tiffilename, string tfwfilename, Document doc)
106
+        {
107
+            Database db = doc.Database;
108
+            ObjectIdCollection obidcoll = new ObjectIdCollection();
109
+            string imageName = new FileInfo(tiffilename).Name;
110
+            double scale = 0;
111
+            double X = 0, Y = 0;
112
+            try
113
+            {
114
+                StreamReader sr = new StreamReader(tfwfilename);
115
+                scale = Convert.ToDouble(sr.ReadLine());
116
+                sr.ReadLine();
117
+                sr.ReadLine();
118
+                sr.ReadLine();
119
+                X = Convert.ToDouble(sr.ReadLine());
120
+                Y = Convert.ToDouble(sr.ReadLine());
121
+                sr.Close();
122
+                sr.Dispose();
123
+            }
124
+            catch (System.Exception ex)
125
+            {
126
+                //MessageBox.Show("警告:" + Path.GetFileName(tiffilename) + "图像没有相应的.tfw文件或tfw文件出错,无法正确插入!\r\n\r\n");
127
+                MessageBox.Show(ex.Message);
128
+            }
129
+
130
+            //using (DocumentLock docLock = doc.LockDocument())
131
+            //{
132
+            using (Transaction tran = db.TransactionManager.StartTransaction())
133
+            {
134
+                //建立名为DOM的图层
135
+                LayerTable lt = tran.GetObject(db.LayerTableId, OpenMode.ForWrite) as LayerTable;
136
+                //try
137
+                //{
138
+                if (!lt.Has("DOM"))
139
+                {
140
+                    LayerTableRecord ltrec = new LayerTableRecord();
141
+                    ltrec.Name = "DOM";
142
+                    ObjectId obid = lt.Add(ltrec);
143
+                    tran.AddNewlyCreatedDBObject(ltrec, true);
144
+                }
145
+
146
+                //}
147
+                //catch (GrxCAD.Runtime.Exception ex)
148
+                //{
149
+                //    MessageBox.Show(ex.ToString());
150
+                //}
151
+                tran.Commit();
152
+            }
153
+            using (Transaction tran = db.TransactionManager.StartTransaction())
154
+            {
155
+                //插入DOM
156
+                BlockTable blktbl = tran.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;
157
+                BlockTableRecord blktblrec = tran.GetObject(blktbl[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;
158
+                DrawOrderTable dot = tran.GetObject(blktblrec.DrawOrderTableId, OpenMode.ForWrite) as DrawOrderTable;
159
+                try
160
+                {
161
+                    #region
162
+                    //RasterImageDef dom = new RasterImageDef();
163
+                    ////domimage.TransformBy();
164
+                    //dom.ActiveFileName = domfilename;
165
+                    ////dom.OpenImage();
166
+                    //dom.Load();
167
+                    //dom.ImageModified = true;
168
+                    //dom.OpenImage();
169
+                    //dom.Embed();                        
170
+                    //RasterImage domimage = new RasterImage();
171
+                    ////Matrix3d.Mirroring();//将栅格图像坐标关于Y轴镜像还原
172
+                    ////Matrix3d.Displacement();//在Y轴正方向上移动图像原始高度距离
173
+                    ////domimage.TransformBy();//最后用6参数组织缩放、旋转、移动的变换矩阵                       
174
+                    //tran.AddNewlyCreatedDBObject(dom, true);
175
+                    //tran.Commit();
176
+                    ///////////////////
177
+                    //RasterImage domimage = new RasterImage();
178
+                    //PromptEntityOptions prent = new PromptEntityOptions("\n请选择山歌图像");
179
+                    //prent.SetRejectMessage("\n选择的不是栅格图像");
180
+                    //prent.AddAllowedClass(typeof(RasterImage), true);
181
+                    //PromptEntityResult prentres = ed.GetEntity(prent);
182
+                    //if (prentres.Status != PromptStatus.OK)
183
+                    //    return;
184
+                    //Matrix3d transform;
185
+                    //ObjectId imgid = prentres.ObjectId;
186
+                    //domimage = (RasterImage)tran.GetObject(imgid, OpenMode.ForRead);
187
+                    //transform = domimage.PixelToModelTransform;
188
+                    #endregion
189
+                    //////////////////////创建图像定义对象
190
+                    ObjectId imgid = RasterImageDef.GetImageDictionary(db);
191
+                    if (imgid == ObjectId.Null)
192
+                        imgid = RasterImageDef.CreateImageDictionary(db);
193
+                    DBDictionary imgdict = tran.GetObject(imgid, OpenMode.ForWrite) as DBDictionary;
194
+                    RasterImageDef imgdef = new RasterImageDef();
195
+                    imgdef.SourceFileName = tiffilename;
196
+                    imgdef.Load();
197
+                    ObjectId imgdefid = imgdict.SetAt(imageName, imgdef);
198
+                    tran.AddNewlyCreatedDBObject(imgdef, true);
199
+                    RasterImage image = new RasterImage();
200
+                    image.ImageDefId = imgdefid;
201
+                    image.Layer = "DOM";
202
+                    blktblrec.AppendEntity(image);
203
+                    tran.AddNewlyCreatedDBObject(image, true);
204
+                    double height = imgdef.Size.Y;
205
+                    Vector3d vt1 = scale * image.Orientation.Xaxis;
206
+                    Vector3d vt2 = scale * image.Orientation.Yaxis;
207
+                    image.AssociateRasterDef(imgdef);
208
+                    //image.Draw();
209
+
210
+                    image.Orientation = new CoordinateSystem3d(new Point3d(X, Y - height * scale, 0), vt1, vt2);
211
+                    //影像后置
212
+                    obidcoll.Add(image.ObjectId);
213
+                    dot.MoveToBottom(obidcoll);
214
+                    obidcoll = new ObjectIdCollection();
215
+                    tran.Commit();
216
+                    GrxCAD.ApplicationServices.Application.UpdateScreen();
217
+                }
218
+                catch (GrxCAD.Runtime.Exception ex)
219
+                {
220
+                    MessageBox.Show(ex.ToString());
221
+                }
222
+
223
+            }
224
+        }
225
+    }
226
+}

+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/InsertDOMs_to_one.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 117
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.Designer.cs Zobrazit soubor

@@ -0,0 +1,117 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class JQXlabel
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.comboBox_jqx = new System.Windows.Forms.ComboBox();
34
+            this.button_ok = new System.Windows.Forms.Button();
35
+            this.label2 = new System.Windows.Forms.Label();
36
+            this.comboBox_blc = new System.Windows.Forms.ComboBox();
37
+            this.SuspendLayout();
38
+            // 
39
+            // label1
40
+            // 
41
+            this.label1.AutoSize = true;
42
+            this.label1.Location = new System.Drawing.Point(86, 39);
43
+            this.label1.Name = "label1";
44
+            this.label1.Size = new System.Drawing.Size(127, 15);
45
+            this.label1.TabIndex = 0;
46
+            this.label1.Text = "计曲线所在图层:";
47
+            // 
48
+            // comboBox_jqx
49
+            // 
50
+            this.comboBox_jqx.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
51
+            this.comboBox_jqx.FormattingEnabled = true;
52
+            this.comboBox_jqx.Location = new System.Drawing.Point(219, 36);
53
+            this.comboBox_jqx.Name = "comboBox_jqx";
54
+            this.comboBox_jqx.Size = new System.Drawing.Size(151, 23);
55
+            this.comboBox_jqx.TabIndex = 1;
56
+            // 
57
+            // button_ok
58
+            // 
59
+            this.button_ok.Location = new System.Drawing.Point(190, 154);
60
+            this.button_ok.Name = "button_ok";
61
+            this.button_ok.Size = new System.Drawing.Size(75, 31);
62
+            this.button_ok.TabIndex = 2;
63
+            this.button_ok.Text = "确 定";
64
+            this.button_ok.UseVisualStyleBackColor = true;
65
+            this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
66
+            // 
67
+            // label2
68
+            // 
69
+            this.label2.AutoSize = true;
70
+            this.label2.Location = new System.Drawing.Point(143, 101);
71
+            this.label2.Name = "label2";
72
+            this.label2.Size = new System.Drawing.Size(67, 15);
73
+            this.label2.TabIndex = 3;
74
+            this.label2.Text = "比例尺:";
75
+            // 
76
+            // comboBox_blc
77
+            // 
78
+            this.comboBox_blc.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
79
+            this.comboBox_blc.FormattingEnabled = true;
80
+            this.comboBox_blc.Items.AddRange(new object[] {
81
+            "1:500",
82
+            "1:1000",
83
+            "1:2000",
84
+            "1:5000",
85
+            "1:10000"});
86
+            this.comboBox_blc.Location = new System.Drawing.Point(219, 98);
87
+            this.comboBox_blc.Name = "comboBox_blc";
88
+            this.comboBox_blc.Size = new System.Drawing.Size(151, 23);
89
+            this.comboBox_blc.TabIndex = 4;
90
+            // 
91
+            // JQXlabel
92
+            // 
93
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
94
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
95
+            this.ClientSize = new System.Drawing.Size(468, 213);
96
+            this.Controls.Add(this.comboBox_blc);
97
+            this.Controls.Add(this.label2);
98
+            this.Controls.Add(this.button_ok);
99
+            this.Controls.Add(this.comboBox_jqx);
100
+            this.Controls.Add(this.label1);
101
+            this.Name = "JQXlabel";
102
+            this.Text = "计曲线高程标注";
103
+            this.Load += new System.EventHandler(this.JQXlabel_Load);
104
+            this.ResumeLayout(false);
105
+            this.PerformLayout();
106
+
107
+        }
108
+
109
+        #endregion
110
+
111
+        private System.Windows.Forms.Label label1;
112
+        private System.Windows.Forms.ComboBox comboBox_jqx;
113
+        private System.Windows.Forms.Button button_ok;
114
+        private System.Windows.Forms.Label label2;
115
+        private System.Windows.Forms.ComboBox comboBox_blc;
116
+    }
117
+}

+ 508
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.cs Zobrazit soubor

@@ -0,0 +1,508 @@
1
+using GrxCAD.DatabaseServices;
2
+using GrxCAD.EditorInput;
3
+using GrxCAD.Geometry;
4
+using System;
5
+using System.Collections.Generic;
6
+using System.ComponentModel;
7
+using System.Data;
8
+using System.Drawing;
9
+using System.Linq;
10
+using System.Text;
11
+using System.Threading.Tasks;
12
+using System.Windows.Forms;
13
+
14
+namespace HCTools
15
+{
16
+    public partial class JQXlabel : Form
17
+    {
18
+        public JQXlabel()
19
+        {
20
+            InitializeComponent();
21
+        }
22
+
23
+        private void JQXlabel_Load(object sender, EventArgs e)
24
+        {
25
+            //自动填充下拉框
26
+            Database database = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
27
+            using (Transaction traction = database.TransactionManager.StartTransaction())
28
+            {
29
+                //存放所有图层名
30
+                List<string> alllayername = new List<string>();
31
+                LayerTable layertable = traction.GetObject(database.LayerTableId, OpenMode.ForRead) as LayerTable;
32
+                foreach (ObjectId objid in layertable)
33
+                {
34
+                    LayerTableRecord layertablerecord = traction.GetObject(objid, OpenMode.ForRead) as LayerTableRecord;
35
+                    alllayername.Add(layertablerecord.Name);
36
+                }
37
+
38
+                alllayername.Sort();
39
+                for (int i = 0; i < alllayername.Count; i++)
40
+                {
41
+                    this.comboBox_jqx.Items.Add(alllayername[i]);
42
+                }
43
+                if (alllayername.Contains("8120"))
44
+                {
45
+                    int index = alllayername.IndexOf("8120");
46
+                    this.comboBox_jqx.SelectedIndex = index;
47
+                }
48
+                traction.Commit();
49
+            }
50
+        }
51
+
52
+        private void button_ok_Click(object sender, EventArgs e)
53
+        {
54
+            if (comboBox_jqx.Text == "")
55
+            {
56
+                MessageBox.Show("计曲线图层不能为空!");
57
+                return;
58
+            }
59
+            if (comboBox_blc.Text == "")
60
+            {
61
+                MessageBox.Show("比例尺不能为空!");
62
+                return;
63
+            }
64
+            //比例尺
65
+            string blctext = comboBox_blc.Text;
66
+            int blcindex = blctext.LastIndexOf(':');
67
+            string strblc = blctext.Substring(blcindex + 1);
68
+            int blc = Convert.ToInt32(strblc);
69
+            string jqx = comboBox_jqx.Text;
70
+            this.Close();
71
+            //循环命令以便重复使用
72
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
73
+            while (true)
74
+            {
75
+                LabelJqx(jqx, blc);
76
+                PromptKeywordOptions continueOpts = new PromptKeywordOptions("\n是否继续? [是(1)/否(2)]");
77
+                continueOpts.Keywords.Add("1");
78
+                continueOpts.Keywords.Add("2");
79
+                continueOpts.AllowNone = true;
80
+                continueOpts.Keywords.Default = "1";
81
+
82
+                PromptResult continueResult = ed.GetKeywords(continueOpts);
83
+                if (continueResult.StringResult == "2"|| continueResult.Status == PromptStatus.Cancel)
84
+                {
85
+                    //避免PromptKeywordOptions的选择窗口出现
86
+                    GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_.REDRAW ", true, false, false);
87
+                    break; // 退出循环
88
+                }
89
+            }
90
+            ed.UpdateScreen();
91
+        }
92
+
93
+        private void LabelJqx(string lyr, int blc)
94
+        {
95
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
96
+            Database db = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
97
+
98
+            //记录动态绘制的注记走向线
99
+            Polyline pl_draw = JigPolyline();
100
+            if (pl_draw == null)
101
+                return;
102
+            Point3dCollection ptcoll = new Point3dCollection();
103
+            for (int i = 0; i < pl_draw.NumberOfVertices; i++)
104
+                ptcoll.Add(pl_draw.GetPoint3dAt(i));
105
+
106
+
107
+            //获取计曲线
108
+            TypedValue[] typedvalue = new TypedValue[2];
109
+            typedvalue.SetValue(new TypedValue((int)DxfCode.LayerName, lyr), 0);
110
+            typedvalue.SetValue(new TypedValue((int)DxfCode.Start, "LWPOLYLINE"), 1);
111
+            SelectionFilter selectionfilter = new SelectionFilter(typedvalue);
112
+            PromptSelectionResult psr = ed.SelectFence(ptcoll,selectionfilter);
113
+            if (psr.Status != PromptStatus.Error)
114
+            {
115
+                SelectionSet selectionset = psr.Value;
116
+                ObjectId[] jqxids = selectionset.GetObjectIds();
117
+
118
+                //创建标记字体
119
+                CreateSheetMap cs = new CreateSheetMap();
120
+                cs.createTextStyle();
121
+                ObjectId HZ = cs.gettextstyleID("HZ");
122
+                //1:2000字高4,以此为基础计算其他比例尺的字高
123
+                double height = 4;
124
+                if (blc == 500)
125
+                    height = 4 * ((double)500 / 2000);
126
+                if (blc == 1000)
127
+                    height = 4 * ((double)1000 / 2000);
128
+                if (blc == 5000)
129
+                    height = 4 * ((double)5000 / 2000);
130
+                if (blc == 10000)
131
+                    height = 4 * ((double)10000 / 2000);
132
+                //遍历计曲线,给每一个计曲线做标记
133
+                foreach (var item in jqxids)
134
+                {
135
+                    using (Transaction tr = db.TransactionManager.StartTransaction())
136
+                    {
137
+                        BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForWrite) as BlockTable;
138
+                        BlockTableRecord btr = tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;
139
+                        Polyline jqx = tr.GetObject(item, OpenMode.ForWrite) as Polyline;
140
+                        //获取绘制的线和等高线交点,交点位置为标注位置
141
+                        var result = GetIntersections(pl_draw, jqx);
142
+                        if(result.Count==0)
143
+                        {
144
+                            tr.Commit();
145
+                            continue;
146
+                        }
147
+                        else
148
+                        {
149
+                            double angle = GetAngle(jqx, pl_draw, result[0]);
150
+                            string ele = jqx.Elevation.ToString();
151
+                            DBText ele_txt = new DBText();
152
+                            ele_txt.Height = height;
153
+                            ele_txt.TextString = ele;
154
+                            ele_txt.TextStyleId = HZ;
155
+                            ele_txt.HorizontalMode = TextHorizontalMode.TextMid;
156
+                            ele_txt.Position = result[0];
157
+                            ele_txt.AlignmentPoint = result[0];
158
+                            ele_txt.Rotation = angle;
159
+                            btr.AppendEntity(ele_txt);
160
+                            tr.AddNewlyCreatedDBObject(ele_txt, true);
161
+                            tr.Commit();
162
+                        }
163
+                    }
164
+                }
165
+                #region
166
+                //foreach (var item in jqxids)
167
+                //{
168
+                //    using (Transaction tr = db.TransactionManager.StartTransaction())
169
+                //    {
170
+                //        BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForWrite) as BlockTable;
171
+                //        BlockTableRecord btr = tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;
172
+                //        Polyline pl = tr.GetObject(item, OpenMode.ForWrite) as Polyline;
173
+                //        string ele = pl.Elevation.ToString();
174
+                //        DBText ele_txt = new DBText();
175
+                //        ele_txt.Height = height;
176
+                //        ele_txt.TextString = ele;
177
+                //        ele_txt.TextStyleId = HZ;
178
+                //        ele_txt.HorizontalMode = TextHorizontalMode.TextMid;
179
+                //        double txt_length = ele_txt.Bounds.Value.MaxPoint.X - ele_txt.Bounds.Value.MinPoint.X;
180
+                //        Point3d pos = GetPosotion(pl, txt_length);
181
+                //        double angle = GetAngle(pl, pos);
182
+                //        ele_txt.Position = pos;
183
+                //        ele_txt.AlignmentPoint = pos;
184
+                //        ele_txt.Rotation = angle;
185
+                //        btr.AppendEntity(ele_txt);
186
+                //        tr.AddNewlyCreatedDBObject(ele_txt, true);
187
+                //        tr.Commit();
188
+                //    }
189
+                //}
190
+                #endregion
191
+            }
192
+        }
193
+
194
+        //动态绘制
195
+        public Polyline JigPolyline()
196
+        {
197
+            Database db = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
198
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
199
+
200
+            try
201
+            {
202
+                Polyline finalPoly = new Polyline();
203
+                // 获取第一个点
204
+                PromptPointOptions pPtOpts = new PromptPointOptions("");
205
+                PromptPointResult firstPoint= ed.GetPoint(pPtOpts);
206
+                if (firstPoint.Status != PromptStatus.OK)
207
+                    return null;
208
+
209
+                // 初始化Jig
210
+                MyPolylineJig jig = new MyPolylineJig();
211
+
212
+                // 交互绘制,当完成或取消时跳出循环
213
+                PromptResult result;
214
+                do
215
+                {
216
+                    result = ed.Drag(jig);
217
+                    if (result.Status == PromptStatus.OK)
218
+                    {
219
+                        jig.AddVertex();
220
+                    }
221
+                }
222
+                while (jig.IsCompleted == false && jig.IsCancelled == false);
223
+
224
+                // 非取消时保存结果
225
+                if (jig.GetPolyline().NumberOfVertices >= 2&& jig.IsCancelled == false)
226
+                {
227
+                    using (Transaction tr = db.TransactionManager.StartTransaction())
228
+                    {
229
+                        BlockTableRecord btr = (BlockTableRecord)tr.GetObject(
230
+                            SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForWrite);
231
+
232
+                        finalPoly = jig.GetPolyline();
233
+                        tr.Commit();
234
+                    }
235
+                    return finalPoly;
236
+                }
237
+            }
238
+            catch (System.Exception ex)
239
+            {
240
+                MessageBox.Show($"\n错误: {ex.Message}");
241
+            }
242
+            return null;
243
+        }
244
+
245
+        #region 用不上
246
+        //private Point3d GetPosotion(Polyline pl, double txt_length)
247
+        //{
248
+        //    Point3d result = new Point3d();
249
+        //    if (pl.Length < txt_length)
250
+        //    {
251
+        //        result = pl.GetPointAtDist(pl.Length / 2);
252
+        //        return result;
253
+        //    }
254
+        //    else
255
+        //    {
256
+        //        double deviationRatio = double.MaxValue;
257
+        //        Point3d pt1 = new Point3d();
258
+        //        Point3d pt2 = new Point3d();
259
+        //        int num = pl.NumberOfVertices / 2;
260
+        //        int flag = -1;//约束do while次数,避免无限循环
261
+        //        do
262
+        //        {
263
+        //            pt1 = pl.GetPoint3dAt(num);
264
+        //            if ((pl.GetDistAtPoint(pl.EndPoint) - pl.GetDistAtPoint(pt1) > txt_length))
265
+        //                pt2 = pl.GetPointAtDist(pl.GetDistAtPoint(pt1) + txt_length);
266
+        //            else
267
+        //            {
268
+        //                num = 0;
269
+        //                flag = 0;//从首点开始循环后计算次数,当再次循环到中间点时跳出循环避免无限循环
270
+        //                continue;
271
+        //            }
272
+        //            Line referenceLine = new Line(pt1, pt2);
273
+        //            List<Point3d> ptlist = new List<Point3d>();
274
+        //            for (int i = 0; i < pl.NumberOfVertices; i++)
275
+        //            {
276
+        //                if (i > pl.GetParameterAtPoint(pt1) &&
277
+        //                   i < pl.GetParameterAtPoint(pt2))
278
+        //                {
279
+        //                    ptlist.Add(pl.GetPoint3dAt(i));
280
+        //                }
281
+        //            }
282
+        //            double maxDeviation = ptlist.Max(p => p.DistanceTo(referenceLine.GetClosestPointTo(p, false)));
283
+        //            deviationRatio = maxDeviation / txt_length;
284
+        //            num++;
285
+        //            if (flag != -1)
286
+        //                flag++;
287
+        //        } while (deviationRatio > 0.05 && flag < pl.NumberOfVertices / 2);
288
+        //        result = new Point3d((pt1.X + pt2.X) / 2,(pt1.Y + pt2.Y) / 2,(pt1.Z + pt2.Z) / 2);
289
+        //        return result;
290
+        //    }
291
+        //}
292
+
293
+        //private double GetAngle(Polyline pl,Transaction tr,Point3d pos,double height,Editor ed)
294
+        //{
295
+        //    double param = pl.GetParameterAtPoint(pl.GetClosestPointTo(pos, false));
296
+        //    //计算该参数处的切线方向,将方向设置为文字方向
297
+        //    Vector3d tangent = pl.GetFirstDerivative(param);
298
+        //    double angle = tangent.GetAngleTo(Vector3d.XAxis);
299
+
300
+        //    Vector3d ray_direction = new Vector3d(-tangent.Y, tangent.X, 0);
301
+
302
+        //    //调整角度范围为正数(0-2π)
303
+        //    if (tangent.Y < 0)
304
+        //        angle = 2 * Math.PI - angle;
305
+        //    if (angle > Math.PI)
306
+        //    {
307
+        //        angle = angle - Math.PI;
308
+        //        //ray_direction = -ray_direction;
309
+        //    }
310
+        //    Ray ray1 = new Ray();
311
+        //    ray1.BasePoint = pos;
312
+        //    ray1.UnitDir = ray_direction;
313
+        //    Ray ray2 = new Ray();
314
+        //    ray2.BasePoint = pos;
315
+        //    ray2.UnitDir = -ray_direction;
316
+        //    Point3dCollection ptcoll1 = new Point3dCollection() { pos, ray1.GetPointAtDist(200) };
317
+        //    Point3dCollection ptcoll2 = new Point3dCollection() { pos, ray2.GetPointAtDist(200) };
318
+
319
+
320
+
321
+        //    //通过左右偏移获取等高线左右的等高线,获取相应高程判断文字方向
322
+        //    //Polyline pl_offset1 = pl.GetOffsetCurves(height)[0] as Polyline;
323
+        //    //Polyline pl_offset2 = pl.GetOffsetCurves(-height)[0] as Polyline;
324
+        //    //Point3dCollection ptcoll1 = new Point3dCollection();
325
+        //    //Point3dCollection ptcoll2 = new Point3dCollection();
326
+        //    //for (int i = 0; i < pl_offset1.NumberOfVertices; i++)
327
+        //    //{
328
+        //    //    ptcoll1.Add(pl_offset1.GetPoint3dAt(i));
329
+        //    //}
330
+        //    //for (int i = 0; i < pl_offset2.NumberOfVertices; i++)
331
+        //    //{
332
+        //    //    ptcoll2.Add(pl_offset2.GetPoint3dAt(i));
333
+        //    //}
334
+        //    TypedValue[] typedvalue = new TypedValue[2];
335
+        //    typedvalue.SetValue(new TypedValue((int)DxfCode.LayerName, comboBox_sqx.Text), 0);
336
+        //    typedvalue.SetValue(new TypedValue((int)DxfCode.Start, "LWPOLYLINE"), 1);
337
+        //    SelectionFilter selectionfilter = new SelectionFilter(typedvalue);
338
+        //    PromptSelectionResult psr1 = ed.SelectFence(ptcoll1, selectionfilter);
339
+        //    PromptSelectionResult psr2 = ed.SelectFence(ptcoll2, selectionfilter);
340
+        //    if (psr1.Status == PromptStatus.OK)
341
+        //    {
342
+        //        SelectionSet selectionset = psr1.Value;
343
+        //        ObjectId[] sqxids = selectionset.GetObjectIds();
344
+        //        Polyline pl1 = tr.GetObject(sqxids[0], OpenMode.ForRead) as Polyline;
345
+        //        if (pl1.Elevation < pl.Elevation)
346
+        //            angle = angle + Math.PI;
347
+
348
+        //    }
349
+        //    else if (psr2.Status == PromptStatus.OK)
350
+        //    {
351
+        //        SelectionSet selectionset = psr2.Value;
352
+        //        ObjectId[] sqxids = selectionset.GetObjectIds();
353
+        //        Polyline pl2 = tr.GetObject(sqxids[0], OpenMode.ForRead) as Polyline;
354
+        //        if (pl2.Elevation > pl.Elevation)
355
+        //            angle = angle + Math.PI;
356
+        //    }
357
+        //    return angle;
358
+        //}
359
+        #endregion
360
+
361
+        //获取注记偏转角度
362
+        private double GetAngle(Polyline pl,Polyline pl2,Point3d pos)
363
+        {
364
+            double param = pl.GetParameterAtPoint(pl.GetClosestPointTo(pos, false));
365
+            double param2 = pl2.GetParameterAtPoint(pl2.GetClosestPointTo(pos, false));
366
+            //计算该参数处的切线方向
367
+            Vector3d tangent = pl.GetFirstDerivative(param);
368
+            double angle = tangent.GetAngleTo(Vector3d.XAxis);
369
+            //调整角度范围为正数(0-2π)
370
+            if (tangent.Y < 0)
371
+                angle = 2 * Math.PI - angle;
372
+            //对比切线的垂线方向和绘制的线的方向,如果差异不超过90°,将方向设置为文字方向
373
+            //否则将切线方向反向
374
+            Vector3d ray_direction = new Vector3d(-tangent.Y, tangent.X, 0);
375
+            Vector3d draw_direction = pl2.GetFirstDerivative(param2);
376
+            if (ray_direction.GetAngleTo(draw_direction) > (Math.PI / 2))
377
+                angle = angle - Math.PI;
378
+            return angle;
379
+        }
380
+
381
+        //为避免误差,将两线移动到原点附近获取交点
382
+        private List<Point3d> GetIntersections(Polyline pll1, Polyline pll2)
383
+        {
384
+            List<Point3d> result = new List<Point3d>();
385
+
386
+            // 创建临时副本
387
+            Polyline tempLine1 = (Polyline)pll1.Clone();
388
+            Polyline tempLine2 = (Polyline)pll2.Clone();
389
+
390
+            // 计算平移向量(以线1起点为基准,移动至原点)
391
+            Vector3d translation = -tempLine1.StartPoint.GetAsVector();
392
+            Matrix3d translateMatrix = Matrix3d.Displacement(translation);
393
+
394
+            // 应用平移变换
395
+            tempLine1.TransformBy(translateMatrix);
396
+            tempLine2.TransformBy(translateMatrix);
397
+
398
+            Point3dCollection translatedPoints = new Point3dCollection();
399
+            var plane = new Plane(Point3d.Origin, Vector3d.ZAxis);
400
+            tempLine1.IntersectWith(tempLine2, Intersect.OnBothOperands, plane, translatedPoints, IntPtr.Zero, IntPtr.Zero);
401
+
402
+            // 计算逆平移矩阵
403
+            Matrix3d inverseMatrix = Matrix3d.Displacement(-translation);
404
+            if (translatedPoints.Count > 0)
405
+            {
406
+                // 获取平移后的交点
407
+                foreach (Point3d item in translatedPoints)
408
+                {
409
+                    // 恢复交点坐标
410
+                    var pt = item.TransformBy(inverseMatrix);
411
+                    result.Add(pt);
412
+                }
413
+            }
414
+            return result;
415
+        }
416
+
417
+    }
418
+
419
+    //动态绘制
420
+    public class MyPolylineJig : DrawJig
421
+    {
422
+        private Polyline _polyline;
423
+        private Point3d _lastPoint;
424
+        private bool _isCancelled = false; //是否取消
425
+        private bool _isCompleted = false; //是否完成
426
+
427
+        public MyPolylineJig()
428
+        {
429
+            _polyline = new Polyline();
430
+        }
431
+
432
+        // 重写Sampler方法
433
+        protected override SamplerStatus Sampler(JigPrompts prompts)
434
+        {
435
+            JigPromptPointOptions jigOpts = new JigPromptPointOptions("\n指定下一点(按空格结束):");
436
+            //设置用户输入控制,允许空输入以便进行完成检测
437
+            jigOpts.UserInputControls = UserInputControls.Accept3dCoordinates
438
+                                  | UserInputControls.NoNegativeResponseAccepted
439
+                                  | UserInputControls.NullResponseAccepted;
440
+            PromptPointResult promptResult = prompts.AcquirePoint(jigOpts);
441
+            if (promptResult.Status == PromptStatus.None)
442
+            {
443
+                _isCompleted = true;
444
+                _polyline.RemoveVertexAt(_polyline.NumberOfVertices - 1);
445
+                return SamplerStatus.Cancel;
446
+            }
447
+            else if (promptResult.Status == PromptStatus.Cancel)
448
+            {
449
+                _isCancelled = true;
450
+                return SamplerStatus.Cancel;
451
+            }
452
+
453
+            if (_polyline.NumberOfVertices > 0 &&_lastPoint.DistanceTo(promptResult.Value) < Tolerance.Global.EqualPoint)
454
+            {
455
+                return SamplerStatus.NoChange;
456
+            }
457
+            _lastPoint = promptResult.Value;
458
+            return SamplerStatus.OK;
459
+        }
460
+
461
+        // 重写WorldDraw方法
462
+        protected override bool WorldDraw(GrxCAD.GraphicsInterface.WorldDraw draw)
463
+        {
464
+            if (_isCompleted == false)
465
+            {
466
+
467
+                if (_polyline.NumberOfVertices == 0)
468
+                {
469
+                    _polyline.AddVertexAt(0, new Point2d(_lastPoint.X, _lastPoint.Y), 0, 0, 0);
470
+                }
471
+                else
472
+                {
473
+                    if (_polyline.NumberOfVertices == 1)
474
+                    {
475
+                        _polyline.AddVertexAt(1, new Point2d(_lastPoint.X, _lastPoint.Y), 0, 0, 0);
476
+                    }
477
+                    else
478
+                    {
479
+                        _polyline.SetPointAt(_polyline.NumberOfVertices - 1,
480
+                            new Point2d(_lastPoint.X, _lastPoint.Y));
481
+                    }
482
+                }
483
+                draw.Geometry.Draw(_polyline);
484
+                return true;
485
+            }
486
+            else
487
+                return false;
488
+        }
489
+
490
+        public Polyline GetPolyline()
491
+        {
492
+            return _polyline;
493
+        }
494
+
495
+        public void AddVertex()
496
+        {
497
+            if (_lastPoint != null)
498
+            {
499
+                _polyline.AddVertexAt(_polyline.NumberOfVertices,
500
+                    new Point2d(_lastPoint.X, _lastPoint.Y), 0, 0, 0);
501
+            }
502
+        }
503
+        public bool IsCompleted { get { return _isCompleted; } }
504
+        public bool IsCancelled { get { return _isCancelled; } }
505
+
506
+    }
507
+
508
+}

+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/JQXlabel.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 109
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.Designer.cs Zobrazit soubor

@@ -0,0 +1,109 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class ModifyTFH
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.comboBox_tfh = new System.Windows.Forms.ComboBox();
34
+            this.label2 = new System.Windows.Forms.Label();
35
+            this.textBox_target = new System.Windows.Forms.TextBox();
36
+            this.button_ok = new System.Windows.Forms.Button();
37
+            this.SuspendLayout();
38
+            // 
39
+            // label1
40
+            // 
41
+            this.label1.AutoSize = true;
42
+            this.label1.Location = new System.Drawing.Point(133, 46);
43
+            this.label1.Name = "label1";
44
+            this.label1.Size = new System.Drawing.Size(127, 15);
45
+            this.label1.TabIndex = 0;
46
+            this.label1.Text = "图幅号所在图层:";
47
+            // 
48
+            // comboBox_tfh
49
+            // 
50
+            this.comboBox_tfh.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
51
+            this.comboBox_tfh.FormattingEnabled = true;
52
+            this.comboBox_tfh.Location = new System.Drawing.Point(266, 43);
53
+            this.comboBox_tfh.Name = "comboBox_tfh";
54
+            this.comboBox_tfh.Size = new System.Drawing.Size(165, 23);
55
+            this.comboBox_tfh.TabIndex = 1;
56
+            // 
57
+            // label2
58
+            // 
59
+            this.label2.AutoSize = true;
60
+            this.label2.Location = new System.Drawing.Point(43, 114);
61
+            this.label2.Name = "label2";
62
+            this.label2.Size = new System.Drawing.Size(217, 15);
63
+            this.label2.TabIndex = 2;
64
+            this.label2.Text = "第一个图框图幅号的目标格式:";
65
+            // 
66
+            // textBox_target
67
+            // 
68
+            this.textBox_target.Location = new System.Drawing.Point(266, 111);
69
+            this.textBox_target.Name = "textBox_target";
70
+            this.textBox_target.Size = new System.Drawing.Size(165, 25);
71
+            this.textBox_target.TabIndex = 3;
72
+            // 
73
+            // button_ok
74
+            // 
75
+            this.button_ok.Location = new System.Drawing.Point(233, 174);
76
+            this.button_ok.Name = "button_ok";
77
+            this.button_ok.Size = new System.Drawing.Size(75, 31);
78
+            this.button_ok.TabIndex = 4;
79
+            this.button_ok.Text = "确 定";
80
+            this.button_ok.UseVisualStyleBackColor = true;
81
+            this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
82
+            // 
83
+            // ModifyTFH
84
+            // 
85
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
86
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
87
+            this.ClientSize = new System.Drawing.Size(541, 228);
88
+            this.Controls.Add(this.button_ok);
89
+            this.Controls.Add(this.textBox_target);
90
+            this.Controls.Add(this.label2);
91
+            this.Controls.Add(this.comboBox_tfh);
92
+            this.Controls.Add(this.label1);
93
+            this.Name = "ModifyTFH";
94
+            this.Text = "图幅号修改";
95
+            this.Load += new System.EventHandler(this.ModifyTFH_Load);
96
+            this.ResumeLayout(false);
97
+            this.PerformLayout();
98
+
99
+        }
100
+
101
+        #endregion
102
+
103
+        private System.Windows.Forms.Label label1;
104
+        private System.Windows.Forms.ComboBox comboBox_tfh;
105
+        private System.Windows.Forms.Label label2;
106
+        private System.Windows.Forms.TextBox textBox_target;
107
+        private System.Windows.Forms.Button button_ok;
108
+    }
109
+}

+ 141
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.cs Zobrazit soubor

@@ -0,0 +1,141 @@
1
+using GrxCAD.DatabaseServices;
2
+using GrxCAD.EditorInput;
3
+using System;
4
+using System.Collections.Generic;
5
+using System.ComponentModel;
6
+using System.Data;
7
+using System.Drawing;
8
+using System.Linq;
9
+using System.Text;
10
+using System.Text.RegularExpressions;
11
+using System.Threading.Tasks;
12
+using System.Windows.Forms;
13
+
14
+namespace HCTools
15
+{
16
+    public partial class ModifyTFH : Form
17
+    {
18
+        public ModifyTFH()
19
+        {
20
+            InitializeComponent();
21
+        }
22
+
23
+        private void ModifyTFH_Load(object sender, EventArgs e)
24
+        {
25
+            //自动填充下拉框
26
+            Database database = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
27
+            using (Transaction traction = database.TransactionManager.StartTransaction())
28
+            {
29
+                //存放所有图层名
30
+                List<string> alllayername = new List<string>();
31
+                LayerTable layertable = traction.GetObject(database.LayerTableId, OpenMode.ForRead) as LayerTable;
32
+                foreach (ObjectId objid in layertable)
33
+                {
34
+                    LayerTableRecord layertablerecord = traction.GetObject(objid, OpenMode.ForRead) as LayerTableRecord;
35
+                    alllayername.Add(layertablerecord.Name);
36
+                }
37
+
38
+                alllayername.Sort();
39
+                for (int i = 0; i < alllayername.Count; i++)
40
+                {
41
+                    this.comboBox_tfh.Items.Add(alllayername[i]);
42
+                }
43
+                if (alllayername.Contains("TFH"))
44
+                {
45
+                    int index = alllayername.IndexOf("TFH");
46
+                    this.comboBox_tfh.SelectedIndex = index;
47
+                }
48
+                traction.Commit();
49
+            }
50
+        }
51
+
52
+        private void button_ok_Click(object sender, EventArgs e)
53
+        {
54
+            if(comboBox_tfh.Text.ToString().Trim()=="")
55
+            {
56
+                MessageBox.Show("图幅号所在图层不能为空!");
57
+                return;
58
+            }
59
+            if (textBox_target.Text.ToString().Trim() == "")
60
+            {
61
+                MessageBox.Show("目标格式不能为空!");
62
+                return;
63
+            }
64
+            ReplaceTFH(comboBox_tfh.Text.ToString(), textBox_target.Text);
65
+            this.Close();
66
+        }
67
+
68
+        private void ReplaceTFH(string lyr,string targetfh)
69
+        {
70
+            Editor ed = GrxCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
71
+            Database db = GrxCAD.DatabaseServices.HostApplicationServices.WorkingDatabase;
72
+
73
+            //获取图幅号
74
+            TypedValue[] typedvalue = new TypedValue[2];
75
+            typedvalue.SetValue(new TypedValue((int)DxfCode.LayerName, lyr), 0);
76
+            typedvalue.SetValue(new TypedValue((int)DxfCode.Start, "TEXT"), 1);
77
+            SelectionFilter selectionfilter = new SelectionFilter(typedvalue);
78
+            PromptSelectionResult psr = ed.SelectAll(selectionfilter);
79
+            if (psr.Status != PromptStatus.Error)
80
+            {
81
+                SelectionSet selectionset = psr.Value;
82
+                ObjectId[] ids = selectionset.GetObjectIds();
83
+                List<DBText> tfh_old = new List<DBText>();
84
+                for (int i = 0; i < ids.Count(); i++)
85
+                {
86
+                    using (Transaction tr = db.TransactionManager.StartTransaction())
87
+                    {
88
+                        DBText text = tr.GetObject(ids[i], OpenMode.ForWrite) as DBText;
89
+                        tfh_old.Add(text);
90
+                        tr.Commit();
91
+                    }
92
+                }
93
+                //将图幅号按从上到下,从左到右的顺序排序
94
+                var tfh_sorted = tfh_old.OrderByDescending(x => x.Position.Y)
95
+                                        .ThenBy(x=> x.Position.X).ToList();
96
+                //遍历排序后图幅号list,并按顺序替换递增的序号
97
+                for (int i = 0; i < tfh_sorted.Count; i++)
98
+                {
99
+                    using (Transaction tr = db.TransactionManager.StartTransaction())
100
+                    {
101
+                        DBText text = tr.GetObject(tfh_sorted[i].ObjectId, OpenMode.ForWrite) as DBText;
102
+                        if (i == 0)
103
+                        {
104
+                            text.TextString = targetfh;
105
+                            tr.Commit();
106
+                            continue;
107
+                        }
108
+                        targetfh = IncrementNumber(targetfh);
109
+                        text.TextString = targetfh;
110
+                        tr.Commit();
111
+                    }
112
+                }
113
+                MessageBox.Show("修改完成");
114
+            }
115
+        }
116
+
117
+        //递增规则
118
+        private static string IncrementNumber(string input, int increment = 1)
119
+        {
120
+            // 找到字符串中的最后一个数字序列
121
+            MatchCollection matches = Regex.Matches(input, @"\d+");
122
+
123
+            if (matches.Count > 0)
124
+            {
125
+                Match lastMatch = matches[matches.Count - 1];
126
+                string prefix = input.Substring(0, lastMatch.Index);
127
+                string suffix = input.Substring(lastMatch.Index + lastMatch.Length);
128
+
129
+                if (int.TryParse(lastMatch.Value, out int number))
130
+                {
131
+                    int newNumber = number + increment;
132
+                    string newNumberStr = newNumber.ToString().PadLeft(lastMatch.Value.Length, '0');
133
+
134
+                    return prefix + newNumberStr + suffix;
135
+                }
136
+            }
137
+
138
+            return input + "1";
139
+        }
140
+    }
141
+}

+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/ModifyTFH.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 144
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.Designer.cs Zobrazit soubor

@@ -0,0 +1,144 @@
1
+
2
+namespace HCTools
3
+{
4
+    partial class OutputbyTK_Form
5
+    {
6
+        /// <summary>
7
+        /// Required designer variable.
8
+        /// </summary>
9
+        private System.ComponentModel.IContainer components = null;
10
+
11
+        /// <summary>
12
+        /// Clean up any resources being used.
13
+        /// </summary>
14
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
15
+        protected override void Dispose(bool disposing)
16
+        {
17
+            if (disposing && (components != null))
18
+            {
19
+                components.Dispose();
20
+            }
21
+            base.Dispose(disposing);
22
+        }
23
+
24
+        #region Windows Form Designer generated code
25
+
26
+        /// <summary>
27
+        /// Required method for Designer support - do not modify
28
+        /// the contents of this method with the code editor.
29
+        /// </summary>
30
+        private void InitializeComponent()
31
+        {
32
+            this.label1 = new System.Windows.Forms.Label();
33
+            this.label2 = new System.Windows.Forms.Label();
34
+            this.textBox_output = new System.Windows.Forms.TextBox();
35
+            this.button_ok = new System.Windows.Forms.Button();
36
+            this.button_sele = new System.Windows.Forms.Button();
37
+            this.comboBox_tk = new System.Windows.Forms.ComboBox();
38
+            this.label3 = new System.Windows.Forms.Label();
39
+            this.comboBox_num = new System.Windows.Forms.ComboBox();
40
+            this.SuspendLayout();
41
+            // 
42
+            // label1
43
+            // 
44
+            this.label1.AutoSize = true;
45
+            this.label1.Location = new System.Drawing.Point(51, 25);
46
+            this.label1.Name = "label1";
47
+            this.label1.Size = new System.Drawing.Size(142, 15);
48
+            this.label1.TabIndex = 0;
49
+            this.label1.Text = "分幅图框所在图层:";
50
+            // 
51
+            // label2
52
+            // 
53
+            this.label2.AutoSize = true;
54
+            this.label2.Location = new System.Drawing.Point(110, 128);
55
+            this.label2.Name = "label2";
56
+            this.label2.Size = new System.Drawing.Size(82, 15);
57
+            this.label2.TabIndex = 1;
58
+            this.label2.Text = "输出位置:";
59
+            // 
60
+            // textBox_output
61
+            // 
62
+            this.textBox_output.Location = new System.Drawing.Point(198, 125);
63
+            this.textBox_output.Name = "textBox_output";
64
+            this.textBox_output.Size = new System.Drawing.Size(257, 25);
65
+            this.textBox_output.TabIndex = 3;
66
+            // 
67
+            // button_ok
68
+            // 
69
+            this.button_ok.Location = new System.Drawing.Point(241, 170);
70
+            this.button_ok.Name = "button_ok";
71
+            this.button_ok.Size = new System.Drawing.Size(75, 31);
72
+            this.button_ok.TabIndex = 4;
73
+            this.button_ok.Text = "确 定";
74
+            this.button_ok.UseVisualStyleBackColor = true;
75
+            this.button_ok.Click += new System.EventHandler(this.button_ok_Click);
76
+            // 
77
+            // button_sele
78
+            // 
79
+            this.button_sele.Location = new System.Drawing.Point(471, 120);
80
+            this.button_sele.Name = "button_sele";
81
+            this.button_sele.Size = new System.Drawing.Size(68, 31);
82
+            this.button_sele.TabIndex = 5;
83
+            this.button_sele.Text = "选 择";
84
+            this.button_sele.UseVisualStyleBackColor = true;
85
+            this.button_sele.Click += new System.EventHandler(this.button_sele_Click);
86
+            // 
87
+            // comboBox_tk
88
+            // 
89
+            this.comboBox_tk.FormattingEnabled = true;
90
+            this.comboBox_tk.Location = new System.Drawing.Point(199, 22);
91
+            this.comboBox_tk.Name = "comboBox_tk";
92
+            this.comboBox_tk.Size = new System.Drawing.Size(146, 23);
93
+            this.comboBox_tk.TabIndex = 6;
94
+            // 
95
+            // label3
96
+            // 
97
+            this.label3.AutoSize = true;
98
+            this.label3.Location = new System.Drawing.Point(65, 76);
99
+            this.label3.Name = "label3";
100
+            this.label3.Size = new System.Drawing.Size(127, 15);
101
+            this.label3.TabIndex = 7;
102
+            this.label3.Text = "图幅号所在图层:";
103
+            // 
104
+            // comboBox_num
105
+            // 
106
+            this.comboBox_num.FormattingEnabled = true;
107
+            this.comboBox_num.Location = new System.Drawing.Point(199, 73);
108
+            this.comboBox_num.Name = "comboBox_num";
109
+            this.comboBox_num.Size = new System.Drawing.Size(146, 23);
110
+            this.comboBox_num.TabIndex = 8;
111
+            // 
112
+            // OutputbyTK_Form
113
+            // 
114
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
115
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
116
+            this.ClientSize = new System.Drawing.Size(595, 234);
117
+            this.Controls.Add(this.comboBox_num);
118
+            this.Controls.Add(this.label3);
119
+            this.Controls.Add(this.comboBox_tk);
120
+            this.Controls.Add(this.button_sele);
121
+            this.Controls.Add(this.button_ok);
122
+            this.Controls.Add(this.textBox_output);
123
+            this.Controls.Add(this.label2);
124
+            this.Controls.Add(this.label1);
125
+            this.Name = "OutputbyTK_Form";
126
+            this.Text = "分幅输出地形图";
127
+            this.Load += new System.EventHandler(this.OutputbyTK_Form_Load);
128
+            this.ResumeLayout(false);
129
+            this.PerformLayout();
130
+
131
+        }
132
+
133
+        #endregion
134
+
135
+        private System.Windows.Forms.Label label1;
136
+        private System.Windows.Forms.Label label2;
137
+        private System.Windows.Forms.TextBox textBox_output;
138
+        private System.Windows.Forms.Button button_ok;
139
+        private System.Windows.Forms.Button button_sele;
140
+        private System.Windows.Forms.ComboBox comboBox_tk;
141
+        private System.Windows.Forms.Label label3;
142
+        private System.Windows.Forms.ComboBox comboBox_num;
143
+    }
144
+}

+ 1314
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.cs
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 120
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/OutputbyTK_Form.resx Zobrazit soubor

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 56
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/HCTools.dll.config Zobrazit soubor

@@ -0,0 +1,56 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<configuration>
3
+    <configSections>
4
+        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
5
+            <section name="HCTools.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
6
+        </sectionGroup>
7
+    </configSections>
8
+    <startup> 
9
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
10
+    </startup>
11
+  <runtime>
12
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
13
+      <dependentAssembly>
14
+        <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
15
+        <bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.0" />
16
+      </dependentAssembly>
17
+    </assemblyBinding>
18
+  </runtime>
19
+  <userSettings>
20
+    <HCTools.Properties.Settings>
21
+      <setting name="TFName" serializeAs="String">
22
+        <value />
23
+      </setting>
24
+      <setting name="Note2" serializeAs="String">
25
+        <value>2000国家大地坐标系,1985国家高程基准,等高距为1m。
26
+GB/T20257.1-2007 国家基本比例尺地图图式 第一部分
27
+1:500 1:1000 1:2000 地形图图式
28
+xxxx年xx月测制</value>
29
+      </setting>
30
+      <setting name="CTY" serializeAs="String">
31
+        <value>测图员 </value>
32
+      </setting>
33
+      <setting name="JCY" serializeAs="String">
34
+        <value>检查员 </value>
35
+      </setting>
36
+      <setting name="TDY" serializeAs="String">
37
+        <value>土调员 </value>
38
+      </setting>
39
+      <setting name="SDY" serializeAs="String">
40
+        <value>数调员 </value>
41
+      </setting>
42
+      <setting name="DH" serializeAs="String">
43
+        <value>0</value>
44
+      </setting>
45
+      <setting name="svpath" serializeAs="String">
46
+        <value />
47
+      </setting>
48
+      <setting name="secret" serializeAs="String">
49
+        <value />
50
+      </setting>
51
+      <setting name="dgj" serializeAs="String">
52
+        <value>1</value>
53
+      </setting>
54
+    </HCTools.Properties.Settings>
55
+  </userSettings>
56
+</configuration>

+ 52362
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/NetTopologySuite.xml
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 173
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Buffers.xml Zobrazit soubor

@@ -0,0 +1,173 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+    <assembly>
4
+        <name>System.Buffers</name>
5
+    </assembly>
6
+    <members>
7
+        <member name="T:System.Buffers.ArrayPool`1">
8
+            <summary>
9
+            Provides a resource pool that enables reusing instances of type <see cref="T:T[]"/>. 
10
+            </summary>
11
+            <remarks>
12
+            <para>
13
+            Renting and returning buffers with an <see cref="T:System.Buffers.ArrayPool`1"/> can increase performance
14
+            in situations where arrays are created and destroyed frequently, resulting in significant
15
+            memory pressure on the garbage collector.
16
+            </para>
17
+            <para>
18
+            This class is thread-safe.  All members may be used by multiple threads concurrently.
19
+            </para>
20
+            </remarks>
21
+        </member>
22
+        <member name="F:System.Buffers.ArrayPool`1.s_sharedInstance">
23
+            <summary>The lazily-initialized shared pool instance.</summary>
24
+        </member>
25
+        <member name="P:System.Buffers.ArrayPool`1.Shared">
26
+            <summary>
27
+            Retrieves a shared <see cref="T:System.Buffers.ArrayPool`1"/> instance.
28
+            </summary>
29
+            <remarks>
30
+            The shared pool provides a default implementation of <see cref="T:System.Buffers.ArrayPool`1"/>
31
+            that's intended for general applicability.  It maintains arrays of multiple sizes, and 
32
+            may hand back a larger array than was actually requested, but will never hand back a smaller 
33
+            array than was requested. Renting a buffer from it with <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/> will result in an 
34
+            existing buffer being taken from the pool if an appropriate buffer is available or in a new 
35
+            buffer being allocated if one is not available.
36
+            </remarks>
37
+        </member>
38
+        <member name="M:System.Buffers.ArrayPool`1.EnsureSharedCreated">
39
+            <summary>Ensures that <see cref="F:System.Buffers.ArrayPool`1.s_sharedInstance"/> has been initialized to a pool and returns it.</summary>
40
+        </member>
41
+        <member name="M:System.Buffers.ArrayPool`1.Create">
42
+            <summary>
43
+            Creates a new <see cref="T:System.Buffers.ArrayPool`1"/> instance using default configuration options.
44
+            </summary>
45
+            <returns>A new <see cref="T:System.Buffers.ArrayPool`1"/> instance.</returns>
46
+        </member>
47
+        <member name="M:System.Buffers.ArrayPool`1.Create(System.Int32,System.Int32)">
48
+            <summary>
49
+            Creates a new <see cref="T:System.Buffers.ArrayPool`1"/> instance using custom configuration options.
50
+            </summary>
51
+            <param name="maxArrayLength">The maximum length of array instances that may be stored in the pool.</param>
52
+            <param name="maxArraysPerBucket">
53
+            The maximum number of array instances that may be stored in each bucket in the pool.  The pool
54
+            groups arrays of similar lengths into buckets for faster access.
55
+            </param>
56
+            <returns>A new <see cref="T:System.Buffers.ArrayPool`1"/> instance with the specified configuration options.</returns>
57
+            <remarks>
58
+            The created pool will group arrays into buckets, with no more than <paramref name="maxArraysPerBucket"/>
59
+            in each bucket and with those arrays not exceeding <paramref name="maxArrayLength"/> in length.
60
+            </remarks>
61
+        </member>
62
+        <member name="M:System.Buffers.ArrayPool`1.Rent(System.Int32)">
63
+            <summary>
64
+            Retrieves a buffer that is at least the requested length.
65
+            </summary>
66
+            <param name="minimumLength">The minimum length of the array needed.</param>
67
+            <returns>
68
+            An <see cref="T:T[]"/> that is at least <paramref name="minimumLength"/> in length.
69
+            </returns>
70
+            <remarks>
71
+            This buffer is loaned to the caller and should be returned to the same pool via 
72
+            <see cref="M:System.Buffers.ArrayPool`1.Return(`0[],System.Boolean)"/> so that it may be reused in subsequent usage of <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/>.  
73
+            It is not a fatal error to not return a rented buffer, but failure to do so may lead to 
74
+            decreased application performance, as the pool may need to create a new buffer to replace
75
+            the one lost.
76
+            </remarks>
77
+        </member>
78
+        <member name="M:System.Buffers.ArrayPool`1.Return(`0[],System.Boolean)">
79
+            <summary>
80
+            Returns to the pool an array that was previously obtained via <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/> on the same 
81
+            <see cref="T:System.Buffers.ArrayPool`1"/> instance.
82
+            </summary>
83
+            <param name="array">
84
+            The buffer previously obtained from <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/> to return to the pool.
85
+            </param>
86
+            <param name="clearArray">
87
+            If <c>true</c> and if the pool will store the buffer to enable subsequent reuse, <see cref="M:System.Buffers.ArrayPool`1.Return(`0[],System.Boolean)"/>
88
+            will clear <paramref name="array"/> of its contents so that a subsequent consumer via <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/> 
89
+            will not see the previous consumer's content.  If <c>false</c> or if the pool will release the buffer,
90
+            the array's contents are left unchanged.
91
+            </param>
92
+            <remarks>
93
+            Once a buffer has been returned to the pool, the caller gives up all ownership of the buffer 
94
+            and must not use it. The reference returned from a given call to <see cref="M:System.Buffers.ArrayPool`1.Rent(System.Int32)"/> must only be
95
+            returned via <see cref="M:System.Buffers.ArrayPool`1.Return(`0[],System.Boolean)"/> once.  The default <see cref="T:System.Buffers.ArrayPool`1"/>
96
+            may hold onto the returned buffer in order to rent it again, or it may release the returned buffer
97
+            if it's determined that the pool already has enough buffers stored.
98
+            </remarks>
99
+        </member>
100
+        <member name="T:System.Buffers.ArrayPoolEventSource.BufferAllocatedReason">
101
+            <summary>The reason for a BufferAllocated event.</summary>
102
+        </member>
103
+        <member name="F:System.Buffers.ArrayPoolEventSource.BufferAllocatedReason.Pooled">
104
+            <summary>The pool is allocating a buffer to be pooled in a bucket.</summary>
105
+        </member>
106
+        <member name="F:System.Buffers.ArrayPoolEventSource.BufferAllocatedReason.OverMaximumSize">
107
+            <summary>The requested buffer size was too large to be pooled.</summary>
108
+        </member>
109
+        <member name="F:System.Buffers.ArrayPoolEventSource.BufferAllocatedReason.PoolExhausted">
110
+            <summary>The pool has already allocated for pooling as many buffers of a particular size as it's allowed.</summary>
111
+        </member>
112
+        <member name="M:System.Buffers.ArrayPoolEventSource.BufferRented(System.Int32,System.Int32,System.Int32,System.Int32)">
113
+            <summary>
114
+            Event for when a buffer is rented.  This is invoked once for every successful call to Rent,
115
+            regardless of whether a buffer is allocated or a buffer is taken from the pool.  In a
116
+            perfect situation where all rented buffers are returned, we expect to see the number
117
+            of BufferRented events exactly match the number of BuferReturned events, with the number
118
+            of BufferAllocated events being less than or equal to those numbers (ideally significantly
119
+            less than).
120
+            </summary>
121
+        </member>
122
+        <member name="M:System.Buffers.ArrayPoolEventSource.BufferAllocated(System.Int32,System.Int32,System.Int32,System.Int32,System.Buffers.ArrayPoolEventSource.BufferAllocatedReason)">
123
+            <summary>
124
+            Event for when a buffer is allocated by the pool.  In an ideal situation, the number
125
+            of BufferAllocated events is significantly smaller than the number of BufferRented and
126
+            BufferReturned events.
127
+            </summary>
128
+        </member>
129
+        <member name="M:System.Buffers.ArrayPoolEventSource.BufferReturned(System.Int32,System.Int32,System.Int32)">
130
+            <summary>
131
+            Event raised when a buffer is returned to the pool.  This event is raised regardless of whether
132
+            the returned buffer is stored or dropped.  In an ideal situation, the number of BufferReturned
133
+            events exactly matches the number of BufferRented events.
134
+            </summary>
135
+        </member>
136
+        <member name="F:System.Buffers.DefaultArrayPool`1.DefaultMaxArrayLength">
137
+            <summary>The default maximum length of each array in the pool (2^20).</summary>
138
+        </member>
139
+        <member name="F:System.Buffers.DefaultArrayPool`1.DefaultMaxNumberOfArraysPerBucket">
140
+            <summary>The default maximum number of arrays per bucket that are available for rent.</summary>
141
+        </member>
142
+        <member name="F:System.Buffers.DefaultArrayPool`1.s_emptyArray">
143
+            <summary>Lazily-allocated empty array used when arrays of length 0 are requested.</summary>
144
+        </member>
145
+        <member name="P:System.Buffers.DefaultArrayPool`1.Id">
146
+            <summary>Gets an ID for the pool to use with events.</summary>
147
+        </member>
148
+        <member name="T:System.Buffers.DefaultArrayPool`1.Bucket">
149
+            <summary>Provides a thread-safe bucket containing buffers that can be Rent'd and Return'd.</summary>
150
+        </member>
151
+        <member name="M:System.Buffers.DefaultArrayPool`1.Bucket.#ctor(System.Int32,System.Int32,System.Int32)">
152
+            <summary>
153
+            Creates the pool with numberOfBuffers arrays where each buffer is of bufferLength length.
154
+            </summary>
155
+        </member>
156
+        <member name="P:System.Buffers.DefaultArrayPool`1.Bucket.Id">
157
+            <summary>Gets an ID for the bucket to use with events.</summary>
158
+        </member>
159
+        <member name="M:System.Buffers.DefaultArrayPool`1.Bucket.Rent">
160
+            <summary>Takes an array from the bucket.  If the bucket is empty, returns null.</summary>
161
+        </member>
162
+        <member name="M:System.Buffers.DefaultArrayPool`1.Bucket.Return(`0[])">
163
+            <summary>
164
+            Attempts to return the buffer to the bucket.  If successful, the buffer will be stored
165
+            in the bucket and true will be returned; otherwise, the buffer won't be stored, and false
166
+            will be returned.
167
+            </summary>
168
+        </member>
169
+        <member name="P:System.SR.ArgumentException_BufferNotFromPool">
170
+            <summary>The buffer is not associated with this pool and may not be returned to it.</summary>
171
+        </member>
172
+    </members>
173
+</doc>

+ 464
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Diagnostics.DiagnosticSource.xml Zobrazit soubor

@@ -0,0 +1,464 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+    <assembly>
4
+        <name>System.Diagnostics.DiagnosticSource</name>
5
+    </assembly>
6
+    <members>
7
+        <member name="T:System.Diagnostics.DiagnosticSource">
8
+            <summary>
9
+            This is the basic API to 'hook' parts of the framework.   It is like an EventSource
10
+            (which can also write object), but is intended to log complex objects that can't be serialized.
11
+            
12
+            Please See the DiagnosticSource Users Guide 
13
+            https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md
14
+            for instructions on its use.  
15
+            </summary>
16
+        </member>
17
+        <member name="M:System.Diagnostics.DiagnosticSource.Write(System.String,System.Object)">
18
+            <summary>
19
+            Write is a generic way of logging complex payloads.  Each notification
20
+            is given a name, which identifies it as well as a object (typically an anonymous type)
21
+            that gives the information to pass to the notification, which is arbitrary.  
22
+            
23
+            The name should be short (so don't use fully qualified names unless you have to
24
+            to avoid ambiguity), but you want the name to be globally unique.  Typically your componentName.eventName
25
+            where componentName and eventName are strings less than 10 characters are a good compromise.  
26
+            notification names should NOT have '.' in them because component names have dots and for them both
27
+            to have dots would lead to ambiguity.   The suggestion is to use _ instead.  It is assumed 
28
+            that listeners will use string prefixing to filter groups, thus having hierarchy in component 
29
+            names is good.  
30
+            </summary>
31
+            <param name="name">The name of the event being written.</param>
32
+            <param name="value">An object that represent the value being passed as a payload for the event.
33
+            This is often a anonymous type which contains several sub-values.</param>
34
+        </member>
35
+        <member name="M:System.Diagnostics.DiagnosticSource.IsEnabled(System.String)">
36
+            <summary>
37
+            Optional: if there is expensive setup for the notification, you can call IsEnabled
38
+            before doing this setup.   Consumers should not be assuming that they only get notifications
39
+            for which IsEnabled is true however, it is optional for producers to call this API. 
40
+            The name should be the same as what is passed to Write.   
41
+            </summary>
42
+            <param name="name">The name of the event being written.</param>
43
+        </member>
44
+        <member name="T:System.Diagnostics.DiagnosticListener">
45
+            <summary>
46
+            A DiagnosticListener is something that forwards on events written with DiagnosticSource.
47
+            It is an IObservable (has Subscribe method), and it also has a Subscribe overload that
48
+            lets you specify a 'IsEnabled' predicate that users of DiagnosticSource will use for 
49
+            'quick checks'.   
50
+            
51
+            The item in the stream is a KeyValuePair[string, object] where the string is the name
52
+            of the diagnostic item and the object is the payload (typically an anonymous type).  
53
+            
54
+            There may be many DiagnosticListeners in the system, but we encourage the use of
55
+            The DiagnosticSource.DefaultSource which goes to the DiagnosticListener.DefaultListener.
56
+            
57
+            If you need to see 'everything' you can subscribe to the 'AllListeners' event that
58
+            will fire for every live DiagnosticListener in the appdomain (past or present). 
59
+            
60
+            Please See the DiagnosticSource Users Guide 
61
+            https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md
62
+            for instructions on its use.  
63
+            </summary>
64
+        </member>
65
+        <member name="P:System.Diagnostics.DiagnosticListener.AllListeners">
66
+            <summary>
67
+            When you subscribe to this you get callbacks for all NotificationListeners in the appdomain
68
+            as well as those that occurred in the past, and all future Listeners created in the future. 
69
+            </summary>
70
+        </member>
71
+        <member name="M:System.Diagnostics.DiagnosticListener.Subscribe(System.IObserver{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.Predicate{System.String})">
72
+            <summary>
73
+            Add a subscriber (Observer).  If 'IsEnabled' == null (or not present), then the Source's IsEnabled 
74
+            will always return true.  
75
+            </summary>
76
+        </member>
77
+        <member name="M:System.Diagnostics.DiagnosticListener.Subscribe(System.IObserver{System.Collections.Generic.KeyValuePair{System.String,System.Object}})">
78
+            <summary>
79
+            Same as other Subscribe overload where the predicate is assumed to always return true.  
80
+            </summary>
81
+        </member>
82
+        <member name="M:System.Diagnostics.DiagnosticListener.#ctor(System.String)">
83
+            <summary>
84
+            Make a new DiagnosticListener, it is a NotificationSource, which means the returned result can be used to 
85
+            log notifications, but it also has a Subscribe method so notifications can be forwarded
86
+            arbitrarily.  Thus its job is to forward things from the producer to all the listeners
87
+            (multi-casting).    Generally you should not be making your own DiagnosticListener but use the
88
+            DiagnosticListener.Default, so that notifications are as 'public' as possible.  
89
+            </summary>
90
+        </member>
91
+        <member name="M:System.Diagnostics.DiagnosticListener.Dispose">
92
+            <summary>
93
+            Clean up the NotificationListeners.   Notification listeners do NOT DIE ON THEIR OWN
94
+            because they are in a global list (for discoverability).  You must dispose them explicitly. 
95
+            Note that we do not do the Dispose(bool) pattern because we frankly don't want to support
96
+            subclasses that have non-managed state.   
97
+            </summary>
98
+        </member>
99
+        <member name="P:System.Diagnostics.DiagnosticListener.Name">
100
+            <summary>
101
+            When a DiagnosticListener is created it is given a name.   Return this.  
102
+            </summary>
103
+        </member>
104
+        <member name="M:System.Diagnostics.DiagnosticListener.ToString">
105
+            <summary>
106
+            Return the name for the ToString() to aid in debugging.  
107
+            </summary>
108
+            <returns></returns>
109
+        </member>
110
+        <member name="M:System.Diagnostics.DiagnosticListener.IsEnabled(System.String)">
111
+            <summary>
112
+            Override abstract method
113
+            </summary>
114
+        </member>
115
+        <member name="M:System.Diagnostics.DiagnosticListener.Write(System.String,System.Object)">
116
+            <summary>
117
+            Override abstract method
118
+            </summary>
119
+        </member>
120
+        <member name="T:System.Diagnostics.DiagnosticListener.AllListenerObservable">
121
+            <summary>
122
+            Logically AllListenerObservable has a very simple task.  It has a linked list of subscribers that want
123
+            a callback when a new listener gets created.   When a new DiagnosticListener gets created it should call 
124
+            OnNewDiagnosticListener so that AllListenerObservable can forward it on to all the subscribers.   
125
+            </summary>
126
+        </member>
127
+        <member name="M:System.Diagnostics.DiagnosticListener.AllListenerObservable.OnNewDiagnosticListener(System.Diagnostics.DiagnosticListener)">
128
+            <summary>
129
+            Called when a new DiagnosticListener gets created to tell anyone who subscribed that this happened.  
130
+            </summary>
131
+            <param name="diagnosticListener"></param>
132
+        </member>
133
+        <member name="M:System.Diagnostics.DiagnosticListener.AllListenerObservable.Remove(System.Diagnostics.DiagnosticListener.AllListenerObservable.AllListenerSubscription)">
134
+            <summary>
135
+            Remove 'subscription from the list of subscriptions that the observable has.   Called when
136
+            subscriptions are disposed.   Returns true if the subscription was removed.  
137
+            </summary>
138
+        </member>
139
+        <member name="T:System.Diagnostics.DiagnosticListener.AllListenerObservable.AllListenerSubscription">
140
+            <summary>
141
+            One node in the linked list of subscriptions that AllListenerObservable keeps.   It is
142
+            IDisposable, and when that is called it removes itself from the list.  
143
+            </summary>
144
+        </member>
145
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource">
146
+            <summary>
147
+            DiagnosticSourceEventSource serves two purposes 
148
+            
149
+              1) It allows debuggers to inject code via Function evaluation.  This is the purpose of the
150
+              BreakPointWithDebuggerFuncEval function in the 'OnEventCommand' method.   Basically even in
151
+              release code, debuggers can place a breakpoint in this method and then trigger the
152
+              DiagnosticSourceEventSource via ETW.  Thus from outside the process you can get a hook that
153
+              is guaranteed to happen BEFORE any DiangosticSource events (if the process is just starting)
154
+              or as soon as possible afterward if it is on attach.
155
+              
156
+              2) It provides a 'bridge' that allows DiagnosticSource messages to be forwarded to EventListers
157
+              or ETW.    You can do this by enabling the Microsoft-Diagnostics-DiagnosticSource with the
158
+              'Events' keyword (for diagnostics purposes, you should also turn on the 'Messages' keyword.  
159
+              
160
+              This EventSource defines a EventSource argument called 'FilterAndPayloadSpecs' that defines
161
+              what DiagnsoticSources to enable and what parts of the payload to serialize into the key-value
162
+              list that will be forwarded to the EventSource.    If it is empty, all serializable parts of
163
+              every DiagnosticSource event will be forwarded (this is NOT recommended for monitoring but 
164
+              can be useful for discovery).
165
+              
166
+              The FilterAndPayloadSpecs is one long string with the following structures
167
+              
168
+              * It is a newline separated list of FILTER_AND_PAYLOAD_SPEC
169
+              * a FILTER_AND_PAYLOAD_SPEC can be 
170
+                  * EVENT_NAME : TRANSFORM_SPECS
171
+                  * EMPTY - turns on all sources with implicit payload elements. 
172
+              * an EVENTNAME can be  
173
+                  * DIAGNOSTIC_SOURCE_NAME / DIAGNOSTC_EVENT_NAME @ EVENT_SOURCE_EVENTNAME  - give the name as well as the EventSource event to log it under.  
174
+                  * DIAGNOSTIC_SOURCE_NAME / DIAGNOSTC_EVENT_NAME   
175
+                  * DIAGNOSTIC_SOURCE_NAME    - which wildcards every event in the Diagnostic source or 
176
+                  * EMPTY                     - which turns on all sources
177
+              * TRANSFORM_SPEC is a semicolon separated list of TRANSFORM_SPEC, which can be 
178
+                  * - TRANSFORM_SPEC               - the '-' indicates that implicit payload elements should be suppressed 
179
+                  * VARIABLE_NAME = PROPERTY_SPEC  - indicates that a payload element 'VARIABLE_NAME' is created from PROPERTY_SPEC
180
+                  * PROPERTY_SPEC                  - This is a shortcut where VARIABLE_NAME is the LAST property name
181
+              * a PROPERTY_SPEC is basically a list of names separated by '.'  
182
+                  * PROPERTY_NAME                  - fetches a property from the DiagnosticSource payload object
183
+                  * PROPERTY_NAME . PROPERTY NAME  - fetches a sub-property of the object. 
184
+            
185
+            Example1:
186
+            
187
+               "BridgeTestSource1/TestEvent1:cls_Point_X=cls.Point.X;cls_Point_Y=cls.Point.Y\r\n" + 
188
+               "BridgeTestSource2/TestEvent2:-cls.Url"
189
+              
190
+            This indicates that two events should be turned on, The 'TestEvent1' event in BridgeTestSource1 and the
191
+            'TestEvent2' in BridgeTestSource2.   In the first case, because the transform did not begin with a - 
192
+            any primitive type/string of 'TestEvent1's payload will be serialized into the output.  In addition if
193
+            there a property of the payload object called 'cls' which in turn has a property 'Point' which in turn
194
+            has a property 'X' then that data is also put in the output with the name cls_Point_X.   Similarly 
195
+            if cls.Point.Y exists, then that value will also be put in the output with the name cls_Point_Y.
196
+            
197
+            For the 'BridgeTestSource2/TestEvent2' event, because the - was specified NO implicit fields will be 
198
+            generated, but if there is a property call 'cls' which has a property 'Url' then that will be placed in
199
+            the output with the name 'Url' (since that was the last property name used and no Variable= clause was 
200
+            specified. 
201
+            
202
+            Example:
203
+            
204
+                "BridgeTestSource1\r\n" + 
205
+                "BridgeTestSource2"
206
+                
207
+            This will enable all events for the BridgeTestSource1 and BridgeTestSource2 sources.   Any string/primitive 
208
+            properties of any of the events will be serialized into the output.  
209
+            
210
+            Example:
211
+            
212
+                ""
213
+                
214
+            This turns on all DiagnosticSources Any string/primitive properties of any of the events will be serialized 
215
+            into the output.   This is not likely to be a good idea as it will be very verbose, but is useful to quickly
216
+            discover what is available.
217
+            
218
+            
219
+            * How data is logged in the EventSource 
220
+            
221
+            By default all data from Diagnostic sources is logged to the the DiagnosticEventSouce event called 'Event' 
222
+            which has three fields  
223
+            
224
+                string SourceName, 
225
+                string EventName, 
226
+                IEnumerable[KeyValuePair[string, string]] Argument
227
+            
228
+            However to support start-stop activity tracking, there are six other events that can be used 
229
+            
230
+                Activity1Start         
231
+                Activity1Stop
232
+                Activity2Start
233
+                Activity2Stop
234
+                RecursiveActivity1Start
235
+                RecursiveActivity1Stop
236
+                
237
+            By using the SourceName/EventName@EventSourceName syntax, you can force particular DiagnosticSource events to
238
+            be logged with one of these EventSource events.   This is useful because the events above have start-stop semantics
239
+            which means that they create activity IDs that are attached to all logging messages between the start and
240
+            the stop (see https://blogs.msdn.microsoft.com/vancem/2015/09/14/exploring-eventsource-activity-correlation-and-causation-features/)
241
+            
242
+            For example the specification 
243
+                
244
+                "MyDiagnosticSource/RequestStart@Activity1Start\r\n" + 
245
+                "MyDiagnosticSource/RequestStop@Activity1Stop\r\n" + 
246
+                "MyDiagnosticSource/SecurityStart@Activity2Start\r\n" + 
247
+                "MyDiagnosticSource/SecurityStop@Activity2Stop\r\n" 
248
+            
249
+            Defines that RequestStart will be logged with the EventSource Event Activity1Start (and the cooresponding stop) which
250
+            means that all events caused between these two markers will have an activity ID assocatied with this start event.  
251
+            Simmilarly SecurityStart is mapped to Activity2Start.    
252
+            
253
+            Note you can map many DiangosticSource events to the same EventSource Event (e.g. Activity1Start).  As long as the
254
+            activities don't nest, you can reuse the same event name (since the payloads have the DiagnosticSource name which can
255
+            disambiguate).   However if they nest you need to use another EventSource event because the rules of EventSource 
256
+            activities state that a start of the same event terminates any existing activity of the same name.   
257
+            
258
+            As its name suggests RecursiveActivity1Start, is marked as recursive and thus can be used when the activity can nest with 
259
+            itself.   This should not be a 'top most' activity because it is not 'self healing' (if you miss a stop, then the
260
+            activity NEVER ends).   
261
+            
262
+            See the DiagnosticSourceEventSourceBridgeTest.cs for more explicit examples of using this bridge.  
263
+            </summary>
264
+        </member>
265
+        <member name="F:System.Diagnostics.DiagnosticSourceEventSource.Keywords.Messages">
266
+            <summary>
267
+            Indicates diagnostics messages from DiagnosticSourceEventSource should be included. 
268
+            </summary>
269
+        </member>
270
+        <member name="F:System.Diagnostics.DiagnosticSourceEventSource.Keywords.Events">
271
+            <summary>
272
+            Indicates that all events from all diagnostic sources should be forwarded to the EventSource using the 'Event' event.  
273
+            </summary>
274
+        </member>
275
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Message(System.String)">
276
+            <summary>
277
+            Used to send ad-hoc diagnostics to humans.   
278
+            </summary>
279
+        </member>
280
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Event(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
281
+            <summary>
282
+            Events from DiagnosticSource can be forwarded to EventSource using this event.  
283
+            </summary>
284
+        </member>
285
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.EventJson(System.String,System.String,System.String)">
286
+            <summary>
287
+            This is only used on V4.5 systems that don't have the ability to log KeyValuePairs directly.
288
+            It will eventually go away, but we should always reserve the ID for this.    
289
+            </summary>
290
+        </member>
291
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity1Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
292
+            <summary>
293
+            Used to mark the beginning of an activity 
294
+            </summary>
295
+        </member>
296
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity1Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
297
+            <summary>
298
+            Used to mark the end of an activity 
299
+            </summary>
300
+        </member>
301
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity2Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
302
+            <summary>
303
+            Used to mark the beginning of an activity 
304
+            </summary>
305
+        </member>
306
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity2Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
307
+            <summary>
308
+            Used to mark the end of an activity that can be recursive.  
309
+            </summary>
310
+        </member>
311
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.RecursiveActivity1Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
312
+            <summary>
313
+            Used to mark the beginning of an activity 
314
+            </summary>
315
+        </member>
316
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.RecursiveActivity1Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
317
+            <summary>
318
+            Used to mark the end of an activity that can be recursive.  
319
+            </summary>
320
+        </member>
321
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.NewDiagnosticListener(System.String)">
322
+            <summary>
323
+            Fires when a new DiagnosticSource becomes available.   
324
+            </summary>
325
+            <param name="SourceName"></param>
326
+        </member>
327
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.#ctor">
328
+            <summary>
329
+            This constructor uses EventSourceSettings which is only available on V4.6 and above
330
+            systems.   We use the EventSourceSettings to turn on support for complex types. 
331
+            </summary>
332
+        </member>
333
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.OnEventCommand(System.Diagnostics.Tracing.EventCommandEventArgs)">
334
+            <summary>
335
+            Called when the EventSource gets a command from a EventListener or ETW. 
336
+            </summary>
337
+        </member>
338
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.BreakPointWithDebuggerFuncEval">
339
+            <summary>
340
+            A function which is fully interruptible even in release code so we can stop here and 
341
+            do function evaluation in the debugger.   Thus this is just a place that is useful
342
+            for the debugger to place a breakpoint where it can inject code with function evaluation
343
+            </summary>
344
+        </member>
345
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform">
346
+            <summary>
347
+            FilterAndTransform represents on transformation specification from a DiagnosticsSource
348
+            to EventSource's 'Event' method.    (e.g.  MySource/MyEvent:out=prop1.prop2.prop3).
349
+            Its main method is 'Morph' which takes a DiagnosticSource object and morphs it into
350
+            a list of string,string key value pairs.   
351
+            
352
+            This method also contains that static 'Create/Destroy FilterAndTransformList, which
353
+            simply parse a series of transformation specifications.  
354
+            </summary>
355
+        </member>
356
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.CreateFilterAndTransformList(System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform@,System.String,System.Diagnostics.DiagnosticSourceEventSource)">
357
+            <summary>
358
+            Parses filterAndPayloadSpecs which is a list of lines each of which has the from
359
+            
360
+               DiagnosticSourceName/EventName:PAYLOAD_SPEC
361
+               
362
+            where PAYLOADSPEC is a semicolon separated list of specifications of the form
363
+            
364
+               OutputName=Prop1.Prop2.PropN
365
+               
366
+            Into linked list of FilterAndTransform that together forward events from the given
367
+            DiagnosticSource's to 'eventSource'.   Sets the 'specList' variable to this value
368
+            (destroying anything that was there previously).  
369
+            
370
+            By default any serializable properties of the payload object are also included
371
+            in the output payload, however this feature and be tuned off by prefixing the
372
+            PAYLOADSPEC with a '-'.   
373
+            </summary>
374
+        </member>
375
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.DestroyFilterAndTransformList(System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform@)">
376
+            <summary>
377
+            This destroys (turns off) the FilterAndTransform stopping the forwarding started with CreateFilterAndTransformList
378
+            </summary>
379
+            <param name="specList"></param>
380
+        </member>
381
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.#ctor(System.String,System.Int32,System.Int32,System.Diagnostics.DiagnosticSourceEventSource,System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform)">
382
+            <summary>
383
+            Creates one FilterAndTransform specification from filterAndPayloadSpec starting at 'startIdx' and ending just before 'endIdx'. 
384
+            This FilterAndTransform will subscribe to DiagnosticSources specified by the specification and forward them to 'eventSource.
385
+            For convenience, the 'Next' field is set to the 'next' parameter, so you can easily form linked lists.  
386
+            </summary>
387
+        </member>
388
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec">
389
+            <summary>
390
+            Transform spec represents a string that describes how to extract a piece of data from
391
+            the DiagnosticSource payload.   An example string is OUTSTR=EVENT_VALUE.PROP1.PROP2.PROP3
392
+            It has a Next field so they can be chained together in a linked list.  
393
+            </summary>
394
+        </member>
395
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.#ctor(System.String,System.Int32,System.Int32,System.Diagnostics.DiagnosticSourceEventSource.TransformSpec)">
396
+            <summary>
397
+            parse the strings 'spec' from startIdx to endIdx (points just beyond the last considered char)
398
+            The syntax is ID1=ID2.ID3.ID4 ....   Where ID1= is optional.    
399
+            </summary>
400
+        </member>
401
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.Morph(System.Object)">
402
+            <summary>
403
+            Given the DiagnosticSourcePayload 'obj', compute a key-value pair from it.  For example 
404
+            if the spec is OUTSTR=EVENT_VALUE.PROP1.PROP2.PROP3 and the ultimate value of PROP3 is
405
+            10 then the return key value pair is  KeyValuePair("OUTSTR","10") 
406
+            </summary>
407
+        </member>
408
+        <member name="F:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.Next">
409
+            <summary>
410
+            A public field that can be used to form a linked list.   
411
+            </summary>
412
+        </member>
413
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec">
414
+            <summary>
415
+            A PropertySpec represents information needed to fetch a property from 
416
+            and efficiently.   Thus it represents a '.PROP' in a TransformSpec
417
+            (and a transformSpec has a list of these).  
418
+            </summary>
419
+        </member>
420
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.#ctor(System.String,System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec)">
421
+            <summary>
422
+            Make a new PropertySpec for a property named 'propertyName'. 
423
+            For convenience you can set he 'next' field to form a linked
424
+            list of PropertySpecs. 
425
+            </summary>
426
+        </member>
427
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.Fetch(System.Object)">
428
+            <summary>
429
+            Given an object fetch the property that this PropertySpec represents.  
430
+            </summary>
431
+        </member>
432
+        <member name="F:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.Next">
433
+            <summary>
434
+            A public field that can be used to form a linked list.   
435
+            </summary>
436
+        </member>
437
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch">
438
+            <summary>
439
+            PropertyFetch is a helper class.  It takes a PropertyInfo and then knows how
440
+            to efficiently fetch that property from a .NET object (See Fetch method).  
441
+            It hides some slightly complex generic code.  
442
+            </summary>
443
+        </member>
444
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch.FetcherForProperty(System.Reflection.PropertyInfo)">
445
+            <summary>
446
+            Create a property fetcher from a .NET Reflection PropertyInfo class that
447
+            represents a property of a particular type.  
448
+            </summary>
449
+        </member>
450
+        <member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch.Fetch(System.Object)">
451
+            <summary>
452
+            Given an object, fetch the property that this propertyFech represents. 
453
+            </summary>
454
+        </member>
455
+        <member name="T:System.Diagnostics.DiagnosticSourceEventSource.CallbackObserver`1">
456
+            <summary>
457
+            CallbackObserver is a adapter class that creates an observer (which you can pass
458
+            to IObservable.Subscribe), and calls the given callback every time the 'next' 
459
+            operation on the IObserver happens. 
460
+            </summary>
461
+            <typeparam name="T"></typeparam>
462
+        </member>
463
+    </members>
464
+</doc>

+ 3489
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Memory.xml
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 3451
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Numerics.Vectors.xml
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 353
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/bin/Debug/System.Runtime.CompilerServices.Unsafe.xml Zobrazit soubor

@@ -0,0 +1,353 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+    <assembly>
4
+        <name>System.Runtime.CompilerServices.Unsafe</name>
5
+    </assembly>
6
+    <members>
7
+        <member name="T:System.Runtime.CompilerServices.Unsafe">
8
+            <summary>
9
+            Contains generic, low-level functionality for manipulating pointers.
10
+            </summary>
11
+        </member>
12
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
13
+            <summary>
14
+            Reads a value of type <typeparamref name="T"/> from the given location.
15
+            </summary>
16
+            <typeparam name="T">The type to read.</typeparam>
17
+            <param name="source">The location to read from.</param>
18
+            <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
19
+        </member>
20
+        <member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
21
+            <summary>
22
+            Reads a value of type <typeparamref name="T"/> from the given location.
23
+            </summary>
24
+            <typeparam name="T">The type to read.</typeparam>
25
+            <param name="source">The location to read from.</param>
26
+            <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
27
+        </member>
28
+        <member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
29
+            <summary>
30
+            Reads a value of type <typeparamref name="T"/> from the given location.
31
+            </summary>
32
+            <typeparam name="T">The type to read.</typeparam>
33
+            <param name="source">The location to read from.</param>
34
+            <returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
35
+        </member>
36
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
37
+            <summary>
38
+            Writes a value of type <typeparamref name="T"/> to the given location.
39
+            </summary>
40
+            <typeparam name="T">The type of value to write.</typeparam>
41
+            <param name="destination">The location to write to.</param>
42
+            <param name="value">The value to write.</param>
43
+        </member>
44
+        <member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
45
+            <summary>
46
+            Writes a value of type <typeparamref name="T"/> to the given location.
47
+            </summary>
48
+            <typeparam name="T">The type of value to write.</typeparam>
49
+            <param name="destination">The location to write to.</param>
50
+            <param name="value">The value to write.</param>
51
+        </member>
52
+        <member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
53
+            <summary>
54
+            Writes a value of type <typeparamref name="T"/> to the given location.
55
+            </summary>
56
+            <typeparam name="T">The type of value to write.</typeparam>
57
+            <param name="destination">The location to write to.</param>
58
+            <param name="value">The value to write.</param>
59
+        </member>
60
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
61
+            <summary>
62
+            Copies a value of type <typeparamref name="T"/> to the given location.
63
+            </summary>
64
+            <typeparam name="T">The type of value to copy.</typeparam>
65
+            <param name="destination">The location to copy to.</param>
66
+            <param name="source">A reference to the value to copy.</param>
67
+        </member>
68
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
69
+            <summary>
70
+            Copies a value of type <typeparamref name="T"/> to the given location.
71
+            </summary>
72
+            <typeparam name="T">The type of value to copy.</typeparam>
73
+            <param name="destination">The location to copy to.</param>
74
+            <param name="source">A pointer to the value to copy.</param>
75
+        </member>
76
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
77
+            <summary>
78
+            Returns a pointer to the given by-ref parameter.
79
+            </summary>
80
+            <typeparam name="T">The type of object.</typeparam>
81
+            <param name="value">The object whose pointer is obtained.</param>
82
+            <returns>A pointer to the given value.</returns>
83
+        </member>
84
+        <member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
85
+            <summary>
86
+            Returns the size of an object of the given type parameter.
87
+            </summary>
88
+            <typeparam name="T">The type of object whose size is retrieved.</typeparam>
89
+            <returns>The size of an object of type <typeparamref name="T"/>.</returns>
90
+        </member>
91
+        <member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
92
+            <summary>
93
+            Casts the given object to the specified type, performs no dynamic type checking.
94
+            </summary>
95
+            <typeparam name="T">The type which the object will be cast to.</typeparam>
96
+            <param name="o">The object to cast.</param>
97
+            <returns>The original object, casted to the given type.</returns>
98
+        </member>
99
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
100
+            <summary>
101
+            Reinterprets the given location as a reference to a value of type <typeparamref name="T"/>.
102
+            </summary>
103
+            <typeparam name="T">The type of the interpreted location.</typeparam>
104
+            <param name="source">The location of the value to reference.</param>
105
+            <returns>A reference to a value of type <typeparamref name="T"/>.</returns>
106
+        </member>
107
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(``0@)">
108
+            <summary>
109
+            Reinterprets the given read-only reference as a reference.
110
+            </summary>
111
+            <typeparam name="T">The type of reference.</typeparam>
112
+            <param name="source">The read-only reference to reinterpret.</param>
113
+            <returns>A reference to a value of type <typeparamref name="T"/>.</returns>
114
+        </member>
115
+        <member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
116
+            <summary>
117
+            Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo"/>.
118
+            </summary>
119
+            <typeparam name="TFrom">The type of reference to reinterpret.</typeparam>
120
+            <typeparam name="TTo">The desired type of the reference.</typeparam>
121
+            <param name="source">The reference to reinterpret.</param>
122
+            <returns>A reference to a value of type <typeparamref name="TTo"/>.</returns>
123
+        </member>
124
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Unbox``1(System.Object)">
125
+            <summary>
126
+            Returns a reference to the value type contained with the specified box object.
127
+            </summary>
128
+            <typeparam name="T">The type of the value type contained within the box.</typeparam>
129
+            <param name="box">The boxed value type.</param>
130
+            <returns>A reference to a value of type <typeparamref name="T"/> in the box object.</returns>
131
+        </member>
132
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.Int32)">
133
+            <summary>
134
+            Adds an element offset to the given reference.
135
+            </summary>
136
+            <typeparam name="T">The type of reference.</typeparam>
137
+            <param name="source">The reference to add the offset to.</param>
138
+            <param name="elementOffset">The offset to add.</param>
139
+            <returns>A new reference that reflects the addition of offset to pointer.</returns>
140
+        </member>
141
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(System.Void*,System.Int32)">
142
+            <summary>
143
+            Adds an element offset to the given pointer.
144
+            </summary>
145
+            <typeparam name="T">The type of reference.</typeparam>
146
+            <param name="source">The pointer to add the offset to.</param>
147
+            <param name="elementOffset">The offset to add.</param>
148
+            <returns>A new pointer that reflects the addition of offset to pointer.</returns>
149
+        </member>
150
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.IntPtr)">
151
+            <summary>
152
+            Adds an element offset to the given reference.
153
+            </summary>
154
+            <typeparam name="T">The type of reference.</typeparam>
155
+            <param name="source">The reference to add the offset to.</param>
156
+            <param name="elementOffset">The offset to add.</param>
157
+            <returns>A new reference that reflects the addition of offset to pointer.</returns>
158
+        </member>
159
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.UIntPtr)">
160
+            <summary>
161
+            Adds an element offset to the given reference.
162
+            </summary>
163
+            <typeparam name="T">The type of reference.</typeparam>
164
+            <param name="source">The reference to add the offset to.</param>
165
+            <param name="elementOffset">The offset to add.</param>
166
+            <returns>A new reference that reflects the addition of offset to pointer.</returns>
167
+        </member>
168
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
169
+            <summary>
170
+            Adds a byte offset to the given reference.
171
+            </summary>
172
+            <typeparam name="T">The type of reference.</typeparam>
173
+            <param name="source">The reference to add the offset to.</param>
174
+            <param name="byteOffset">The offset to add.</param>
175
+            <returns>A new reference that reflects the addition of byte offset to pointer.</returns>
176
+        </member>
177
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.UIntPtr)">
178
+            <summary>
179
+            Adds a byte offset to the given reference.
180
+            </summary>
181
+            <typeparam name="T">The type of reference.</typeparam>
182
+            <param name="source">The reference to add the offset to.</param>
183
+            <param name="byteOffset">The offset to add.</param>
184
+            <returns>A new reference that reflects the addition of byte offset to pointer.</returns>
185
+        </member>
186
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
187
+            <summary>
188
+            Subtracts an element offset from the given reference.
189
+            </summary>
190
+            <typeparam name="T">The type of reference.</typeparam>
191
+            <param name="source">The reference to subtract the offset from.</param>
192
+            <param name="elementOffset">The offset to subtract.</param>
193
+            <returns>A new reference that reflects the subraction of offset from pointer.</returns>
194
+        </member>
195
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
196
+            <summary>
197
+            Subtracts an element offset from the given reference.
198
+            </summary>
199
+            <typeparam name="T">The type of reference.</typeparam>
200
+            <param name="source">The reference to subtract the offset from.</param>
201
+            <param name="elementOffset">The offset to subtract.</param>
202
+            <returns>A new reference that reflects the subraction of offset from pointer.</returns>
203
+        </member>
204
+        <member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.UIntPtr)">
205
+            <summary>
206
+            Subtracts an element offset from the given reference.
207
+            </summary>
208
+            <typeparam name="T">The type of reference.</typeparam>
209
+            <param name="source">The reference to subtract the offset from.</param>
210
+            <param name="elementOffset">The offset to subtract.</param>
211
+            <returns>A new reference that reflects the subraction of offset from pointer.</returns>
212
+        </member>
213
+        <member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
214
+            <summary>
215
+            Subtracts a byte offset from the given reference.
216
+            </summary>
217
+            <typeparam name="T">The type of reference.</typeparam>
218
+            <param name="source">The reference to subtract the offset from.</param>
219
+            <param name="byteOffset">The offset to subtract.</param>
220
+            <returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
221
+        </member>
222
+        <member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.UIntPtr)">
223
+            <summary>
224
+            Subtracts a byte offset from the given reference.
225
+            </summary>
226
+            <typeparam name="T">The type of reference.</typeparam>
227
+            <param name="source">The reference to subtract the offset from.</param>
228
+            <param name="byteOffset">The offset to subtract.</param>
229
+            <returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
230
+        </member>
231
+        <member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
232
+            <summary>
233
+            Determines the byte offset from origin to target from the given references.
234
+            </summary>
235
+            <typeparam name="T">The type of reference.</typeparam>
236
+            <param name="origin">The reference to origin.</param>
237
+            <param name="target">The reference to target.</param>
238
+            <returns>Byte offset from origin to target i.e. <paramref name="target"/> - <paramref name="origin"/>.</returns>
239
+        </member>
240
+        <member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
241
+            <summary>
242
+            Determines whether the specified references point to the same location.
243
+            </summary>
244
+            <param name="left">The first reference to compare.</param>
245
+            <param name="right">The second reference to compare.</param>
246
+            <returns><c>true</c> if <paramref name="left"/> and <paramref name="right"/> point to the same location; otherwise <c>false</c>.</returns>
247
+        </member>
248
+        <member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressGreaterThan``1(``0@,``0@)">
249
+            <summary>
250
+            Determines whether the memory address referenced by <paramref name="left"/> is greater than the memory address referenced by <paramref name="right"/>.
251
+            </summary>
252
+            <param name="left">The first reference to compare.</param>
253
+            <param name="right">The second reference to compare.</param>
254
+            <returns><c>true</c> if the memory address referenced by <paramref name="left"/> is greater than the memory address referenced by <paramref name="right"/>; otherwise <c>false</c>.</returns>
255
+            <remarks>
256
+            This check is conceptually similar to "(void*)(&amp;left) &gt; (void*)(&amp;right)". Both parameters must reference the same object, array, or span;
257
+            or the objects being referenced must both be pinned; or both references must represent unmanaged pointers; otherwise the result is undefined.
258
+            </remarks>
259
+        </member>
260
+        <member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressLessThan``1(``0@,``0@)">
261
+            <summary>
262
+            Determines whether the memory address referenced by <paramref name="left"/> is less than the memory address referenced by <paramref name="right"/>.
263
+            </summary>
264
+            <param name="left">The first reference to compare.</param>
265
+            <param name="right">The second reference to compare.</param>
266
+            <returns><c>true</c> if the memory address referenced by <paramref name="left"/> is less than the memory address referenced by <paramref name="right"/>; otherwise <c>false</c>.</returns>
267
+            <remarks>
268
+            This check is conceptually similar to "(void*)(&amp;left) &lt; (void*)(&amp;right)". Both parameters must reference the same object, array, or span;
269
+            or the objects being referenced must both be pinned; or both references must represent unmanaged pointers; otherwise the result is undefined.
270
+            </remarks>
271
+        </member>
272
+        <member name="M:System.Runtime.CompilerServices.Unsafe.IsNullRef``1(``0@)">
273
+          <summary>
274
+            Returns if a given reference to a value of type <typeparamref name="T"/> is a null reference.
275
+          </summary>
276
+          <param name="source">The reference to check.</param>
277
+          <remarks>This check is conceptually similar to "(void*)(&amp;source) == nullptr".</remarks>
278
+        </member>
279
+        <member name="M:System.Runtime.CompilerServices.Unsafe.NullRef``1">
280
+          <summary>
281
+            Returns a reference to a value of type <typeparamref name="T"/> that is a null reference.
282
+          </summary>
283
+        </member>
284
+        <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Void*,System.Void*,System.UInt32)">
285
+            <summary>
286
+            Copies bytes from the source address to the destination address.
287
+            </summary>
288
+            <param name="destination">The destination address to copy to.</param>
289
+            <param name="source">The source address to copy from.</param>
290
+            <param name="byteCount">The number of bytes to copy.</param>
291
+        </member>
292
+        <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
293
+            <summary>
294
+            Copies bytes from the source address to the destination address.
295
+            </summary>
296
+            <param name="destination">The destination address to copy to.</param>
297
+            <param name="source">The source address to copy from.</param>
298
+            <param name="byteCount">The number of bytes to copy.</param>
299
+        </member>
300
+        <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
301
+            <summary>
302
+            Copies bytes from the source address to the destination address 
303
+            without assuming architecture dependent alignment of the addresses.
304
+            </summary>
305
+            <param name="destination">The destination address to copy to.</param>
306
+            <param name="source">The source address to copy from.</param>
307
+            <param name="byteCount">The number of bytes to copy.</param>
308
+        </member>
309
+        <member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
310
+            <summary>
311
+            Copies bytes from the source address to the destination address 
312
+            without assuming architecture dependent alignment of the addresses.
313
+            </summary>
314
+            <param name="destination">The destination address to copy to.</param>
315
+            <param name="source">The source address to copy from.</param>
316
+            <param name="byteCount">The number of bytes to copy.</param>
317
+        </member>
318
+        <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Void*,System.Byte,System.UInt32)">
319
+            <summary>
320
+            Initializes a block of memory at the given location with a given initial value.
321
+            </summary>
322
+            <param name="startAddress">The address of the start of the memory block to initialize.</param>
323
+            <param name="value">The value to initialize the block to.</param>
324
+            <param name="byteCount">The number of bytes to initialize.</param>
325
+        </member>
326
+        <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Byte@,System.Byte,System.UInt32)">
327
+            <summary>
328
+            Initializes a block of memory at the given location with a given initial value.
329
+            </summary>
330
+            <param name="startAddress">The address of the start of the memory block to initialize.</param>
331
+            <param name="value">The value to initialize the block to.</param>
332
+            <param name="byteCount">The number of bytes to initialize.</param>
333
+        </member>
334
+        <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
335
+            <summary>
336
+            Initializes a block of memory at the given location with a given initial value 
337
+            without assuming architecture dependent alignment of the address.
338
+            </summary>
339
+            <param name="startAddress">The address of the start of the memory block to initialize.</param>
340
+            <param name="value">The value to initialize the block to.</param>
341
+            <param name="byteCount">The number of bytes to initialize.</param>
342
+        </member>
343
+        <member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
344
+            <summary>
345
+            Initializes a block of memory at the given location with a given initial value 
346
+            without assuming architecture dependent alignment of the address.
347
+            </summary>
348
+            <param name="startAddress">The address of the start of the memory block to initialize.</param>
349
+            <param name="value">The value to initialize the block to.</param>
350
+            <param name="byteCount">The number of bytes to initialize.</param>
351
+        </member>
352
+    </members>
353
+</doc>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/028E9832F421F11F9497C610F1734E0F3D868037.costura.costura.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/6C6000A5EAF8579850AB82A89BD6268776EB51AD.costura.costura.pdb.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/806F4C19B2D7FD9E3B836269EC07647019A29E95.costura.costura.pdb.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/854B457BEEC353FD20BD195521FF03D7E7BB138C.costura.nettopologysuite.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/85DC92EDD4B0049ED9049E075C4DEF8A3D64E43B.costura.system.diagnostics.diagnosticsource.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/8890AD1911448490526D2A45AC8CC518B6E886A2.costura.system.numerics.vectors.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/8C23283128D23F6CBC208E3A485A1CF1A9C0CB50.costura.system.buffers.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/E5D644311A6087C6A500F0E79BAE4AF305430B3D.costura.system.runtime.compilerservices.unsafe.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/F1F25C01F6ACF33BDD62C4F82D3EF078E76F0906.costura.costura.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/Costura/F8A118F07EEA37CE732B487AB730646DEDC46235.costura.system.memory.dll.compressed.compressed Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.Dgxthrorvrd_Form.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.GCDdelete_Form.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.InsertDOMs_to_one.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.JQXlabel.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.ModifyTFH.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.OutputbyTK_Form.resources Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.AssemblyReference.cache Zobrazit soubor


+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.CopyComplete Zobrazit soubor


+ 6
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.Fody.CopyLocal.cache Zobrazit soubor

@@ -0,0 +1,6 @@
1
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\NetTopologySuite.2.6.0\lib\netstandard2.0\NetTopologySuite.xml
2
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\System.Buffers.4.6.0\lib\net462\System.Buffers.xml
3
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\System.Diagnostics.DiagnosticSource.4.3.0\lib\net46\System.Diagnostics.DiagnosticSource.xml
4
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\System.Memory.4.6.0\lib\net462\System.Memory.xml
5
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\System.Numerics.Vectors.4.6.0\lib\net462\System.Numerics.Vectors.xml
6
+F:\2024\08\加密后软件工具\CAD插件工具\源代码\HCTools\packages\System.Runtime.CompilerServices.Unsafe.6.1.0\lib\net462\System.Runtime.CompilerServices.Unsafe.xml

+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/obj/Debug/HCTools.csproj.Fody.RuntimeCopyLocal.cache Zobrazit soubor


+ 56
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/HCTools/packages.config Zobrazit soubor

@@ -0,0 +1,56 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<packages>
3
+  <package id="Costura.Fody" version="5.7.0" targetFramework="net48" developmentDependency="true" />
4
+  <package id="Fody" version="6.8.0" targetFramework="net48" developmentDependency="true" />
5
+  <package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="net48" />
6
+  <package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net48" />
7
+  <package id="NETStandard.Library" version="1.6.1" targetFramework="net48" />
8
+  <package id="NetTopologySuite" version="2.6.0" targetFramework="net48" />
9
+  <package id="System.AppContext" version="4.3.0" targetFramework="net48" />
10
+  <package id="System.Buffers" version="4.6.0" targetFramework="net48" />
11
+  <package id="System.Collections" version="4.3.0" targetFramework="net48" />
12
+  <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net48" />
13
+  <package id="System.Console" version="4.3.0" targetFramework="net48" />
14
+  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net48" />
15
+  <package id="System.Diagnostics.DiagnosticSource" version="4.3.0" targetFramework="net48" />
16
+  <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net48" />
17
+  <package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="net48" />
18
+  <package id="System.Globalization" version="4.3.0" targetFramework="net48" />
19
+  <package id="System.Globalization.Calendars" version="4.3.0" targetFramework="net48" />
20
+  <package id="System.IO" version="4.3.0" targetFramework="net48" />
21
+  <package id="System.IO.Compression" version="4.3.0" targetFramework="net48" />
22
+  <package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="net48" />
23
+  <package id="System.IO.FileSystem" version="4.3.0" targetFramework="net48" />
24
+  <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net48" />
25
+  <package id="System.Linq" version="4.3.0" targetFramework="net48" />
26
+  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="net48" />
27
+  <package id="System.Memory" version="4.6.0" targetFramework="net48" />
28
+  <package id="System.Net.Http" version="4.3.0" targetFramework="net48" />
29
+  <package id="System.Net.Primitives" version="4.3.0" targetFramework="net48" />
30
+  <package id="System.Net.Sockets" version="4.3.0" targetFramework="net48" />
31
+  <package id="System.Numerics.Vectors" version="4.6.0" targetFramework="net48" />
32
+  <package id="System.ObjectModel" version="4.3.0" targetFramework="net48" />
33
+  <package id="System.Reflection" version="4.3.0" targetFramework="net48" />
34
+  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="net48" />
35
+  <package id="System.Reflection.Primitives" version="4.3.0" targetFramework="net48" />
36
+  <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net48" />
37
+  <package id="System.Runtime" version="4.3.0" targetFramework="net48" />
38
+  <package id="System.Runtime.CompilerServices.Unsafe" version="6.1.0" targetFramework="net48" />
39
+  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="net48" />
40
+  <package id="System.Runtime.Handles" version="4.3.0" targetFramework="net48" />
41
+  <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net48" />
42
+  <package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net48" />
43
+  <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net48" />
44
+  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net48" />
45
+  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net48" />
46
+  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net48" />
47
+  <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net48" />
48
+  <package id="System.Text.Encoding" version="4.3.0" targetFramework="net48" />
49
+  <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net48" />
50
+  <package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="net48" />
51
+  <package id="System.Threading" version="4.3.0" targetFramework="net48" />
52
+  <package id="System.Threading.Tasks" version="4.3.0" targetFramework="net48" />
53
+  <package id="System.Threading.Timer" version="4.3.0" targetFramework="net48" />
54
+  <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="net48" />
55
+  <package id="System.Xml.XDocument" version="4.3.0" targetFramework="net48" />
56
+</packages>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/.signature.p7s Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/Costura.Fody.5.7.0.nupkg Zobrazit soubor


+ 15
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/build/Costura.Fody.props Zobrazit soubor

@@ -0,0 +1,15 @@
1
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+
3
+  <PropertyGroup>
4
+    <WeaverRuntimeToken
5
+        Condition="$(MSBuildRuntimeType) != 'Core'">netclassicweaver</WeaverRuntimeToken>
6
+    <WeaverRuntimeToken
7
+        Condition="$(MSBuildRuntimeType) == 'Core'">netstandardweaver</WeaverRuntimeToken>
8
+  </PropertyGroup>
9
+
10
+  <ItemGroup>
11
+    <WeaverFiles
12
+        Include="$(MsBuildThisFileDirectory)..\$(WeaverRuntimeToken)\$(MSBuildThisFileName).dll" />
13
+  </ItemGroup>
14
+
15
+</Project>

+ 13
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/build/Costura.Fody.targets Zobrazit soubor

@@ -0,0 +1,13 @@
1
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+
3
+  <PropertyGroup Condition="$(CosturaRemoveCopyLocalFilesToPublish) == ''">
4
+    <CosturaRemoveCopyLocalFilesToPublish>true</CosturaRemoveCopyLocalFilesToPublish>
5
+  </PropertyGroup>
6
+
7
+  <Target Name="CosturaRemoveAlreadyEmbeddedFilesFromPublish" AfterTargets="ComputeResolvedFilesToPublishList" Condition="$(CosturaRemoveCopyLocalFilesToPublish) == 'true'">
8
+    <ItemGroup>
9
+      <ResolvedFileToPublish Remove="@(FodyRemovedReferenceCopyLocalPaths)" />
10
+    </ItemGroup>
11
+  </Target>
12
+
13
+</Project>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/icon.png Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.pdb Zobrazit soubor


+ 23
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.xml Zobrazit soubor

@@ -0,0 +1,23 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+    <assembly>
4
+        <name>Costura</name>
5
+    </assembly>
6
+    <members>
7
+        <member name="T:MethodTimeLogger">
8
+            <summary>
9
+            Note: do not rename this class or put it inside a namespace.
10
+            </summary>
11
+        </member>
12
+        <member name="T:CosturaUtility">
13
+            <summary>
14
+            Contains methods for interacting with the Costura system.
15
+            </summary>
16
+        </member>
17
+        <member name="M:CosturaUtility.Initialize">
18
+            <summary>
19
+            Call this to Initialize the Costura system.
20
+            </summary>
21
+        </member>
22
+    </members>
23
+</doc>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.dll Zobrazit soubor


+ 115
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.xcf Zobrazit soubor

@@ -0,0 +1,115 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+  <xs:all>
4
+    <xs:element  minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
5
+      <xs:annotation>
6
+        <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
7
+      </xs:annotation>
8
+    </xs:element>
9
+    <xs:element  minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
10
+      <xs:annotation>
11
+        <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
12
+      </xs:annotation>
13
+    </xs:element>
14
+    <xs:element  minOccurs="0" maxOccurs="1" name="ExcludeRuntimeAssemblies" type="xs:string">
15
+      <xs:annotation>
16
+        <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
17
+      </xs:annotation>
18
+    </xs:element>
19
+    <xs:element  minOccurs="0" maxOccurs="1" name="IncludeRuntimeAssemblies" type="xs:string">
20
+      <xs:annotation>
21
+        <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
22
+      </xs:annotation>
23
+    </xs:element>
24
+    <xs:element  minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
25
+      <xs:annotation>
26
+        <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
27
+      </xs:annotation>
28
+    </xs:element>
29
+    <xs:element  minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
30
+      <xs:annotation>
31
+        <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
32
+      </xs:annotation>
33
+    </xs:element>
34
+    <xs:element  minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
35
+      <xs:annotation>
36
+        <xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
37
+      </xs:annotation>
38
+    </xs:element>
39
+  </xs:all>
40
+  <xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
41
+    <xs:annotation>
42
+      <xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
43
+    </xs:annotation>
44
+  </xs:attribute>
45
+  <xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
46
+    <xs:annotation>
47
+      <xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
48
+    </xs:annotation>
49
+  </xs:attribute>
50
+  <xs:attribute name="IncludeRuntimeReferences" type="xs:boolean">
51
+    <xs:annotation>
52
+      <xs:documentation>Controls if runtime assemblies are also embedded.</xs:documentation>
53
+    </xs:annotation>
54
+  </xs:attribute>
55
+  <xs:attribute name="UseRuntimeReferencePaths" type="xs:boolean">
56
+    <xs:annotation>
57
+      <xs:documentation>Controls whether the runtime assemblies are embedded with their full path or only with their assembly name.</xs:documentation>
58
+    </xs:annotation>
59
+  </xs:attribute>
60
+  <xs:attribute name="DisableCompression" type="xs:boolean">
61
+    <xs:annotation>
62
+      <xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
63
+    </xs:annotation>
64
+  </xs:attribute>
65
+  <xs:attribute name="DisableCleanup" type="xs:boolean">
66
+    <xs:annotation>
67
+      <xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
68
+    </xs:annotation>
69
+  </xs:attribute>
70
+  <xs:attribute name="LoadAtModuleInit" type="xs:boolean">
71
+    <xs:annotation>
72
+      <xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
73
+    </xs:annotation>
74
+  </xs:attribute>
75
+  <xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
76
+    <xs:annotation>
77
+      <xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
78
+    </xs:annotation>
79
+  </xs:attribute>
80
+  <xs:attribute name="ExcludeAssemblies" type="xs:string">
81
+    <xs:annotation>
82
+      <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
83
+    </xs:annotation>
84
+  </xs:attribute>
85
+  <xs:attribute name="IncludeAssemblies" type="xs:string">
86
+    <xs:annotation>
87
+      <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
88
+    </xs:annotation>
89
+  </xs:attribute>
90
+  <xs:attribute name="ExcludeRuntimeAssemblies" type="xs:string">
91
+    <xs:annotation>
92
+      <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
93
+    </xs:annotation>
94
+  </xs:attribute>
95
+  <xs:attribute name="IncludeRuntimeAssemblies" type="xs:string">
96
+    <xs:annotation>
97
+      <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
98
+    </xs:annotation>
99
+  </xs:attribute>
100
+  <xs:attribute name="Unmanaged32Assemblies" type="xs:string">
101
+    <xs:annotation>
102
+      <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
103
+    </xs:annotation>
104
+  </xs:attribute>
105
+  <xs:attribute name="Unmanaged64Assemblies" type="xs:string">
106
+    <xs:annotation>
107
+      <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
108
+    </xs:annotation>
109
+  </xs:attribute>
110
+  <xs:attribute name="PreloadOrder" type="xs:string">
111
+    <xs:annotation>
112
+      <xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
113
+    </xs:annotation>
114
+  </xs:attribute>
115
+</xs:complexType>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.dll Zobrazit soubor


+ 115
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.xcf Zobrazit soubor

@@ -0,0 +1,115 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+  <xs:all>
4
+    <xs:element  minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
5
+      <xs:annotation>
6
+        <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
7
+      </xs:annotation>
8
+    </xs:element>
9
+    <xs:element  minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
10
+      <xs:annotation>
11
+        <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
12
+      </xs:annotation>
13
+    </xs:element>
14
+    <xs:element  minOccurs="0" maxOccurs="1" name="ExcludeRuntimeAssemblies" type="xs:string">
15
+      <xs:annotation>
16
+        <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
17
+      </xs:annotation>
18
+    </xs:element>
19
+    <xs:element  minOccurs="0" maxOccurs="1" name="IncludeRuntimeAssemblies" type="xs:string">
20
+      <xs:annotation>
21
+        <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
22
+      </xs:annotation>
23
+    </xs:element>
24
+    <xs:element  minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
25
+      <xs:annotation>
26
+        <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
27
+      </xs:annotation>
28
+    </xs:element>
29
+    <xs:element  minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
30
+      <xs:annotation>
31
+        <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
32
+      </xs:annotation>
33
+    </xs:element>
34
+    <xs:element  minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
35
+      <xs:annotation>
36
+        <xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
37
+      </xs:annotation>
38
+    </xs:element>
39
+  </xs:all>
40
+  <xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
41
+    <xs:annotation>
42
+      <xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
43
+    </xs:annotation>
44
+  </xs:attribute>
45
+  <xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
46
+    <xs:annotation>
47
+      <xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
48
+    </xs:annotation>
49
+  </xs:attribute>
50
+  <xs:attribute name="IncludeRuntimeReferences" type="xs:boolean">
51
+    <xs:annotation>
52
+      <xs:documentation>Controls if runtime assemblies are also embedded.</xs:documentation>
53
+    </xs:annotation>
54
+  </xs:attribute>
55
+  <xs:attribute name="UseRuntimeReferencePaths" type="xs:boolean">
56
+    <xs:annotation>
57
+      <xs:documentation>Controls whether the runtime assemblies are embedded with their full path or only with their assembly name.</xs:documentation>
58
+    </xs:annotation>
59
+  </xs:attribute>
60
+  <xs:attribute name="DisableCompression" type="xs:boolean">
61
+    <xs:annotation>
62
+      <xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
63
+    </xs:annotation>
64
+  </xs:attribute>
65
+  <xs:attribute name="DisableCleanup" type="xs:boolean">
66
+    <xs:annotation>
67
+      <xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
68
+    </xs:annotation>
69
+  </xs:attribute>
70
+  <xs:attribute name="LoadAtModuleInit" type="xs:boolean">
71
+    <xs:annotation>
72
+      <xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
73
+    </xs:annotation>
74
+  </xs:attribute>
75
+  <xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
76
+    <xs:annotation>
77
+      <xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
78
+    </xs:annotation>
79
+  </xs:attribute>
80
+  <xs:attribute name="ExcludeAssemblies" type="xs:string">
81
+    <xs:annotation>
82
+      <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
83
+    </xs:annotation>
84
+  </xs:attribute>
85
+  <xs:attribute name="IncludeAssemblies" type="xs:string">
86
+    <xs:annotation>
87
+      <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
88
+    </xs:annotation>
89
+  </xs:attribute>
90
+  <xs:attribute name="ExcludeRuntimeAssemblies" type="xs:string">
91
+    <xs:annotation>
92
+      <xs:documentation>A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
93
+    </xs:annotation>
94
+  </xs:attribute>
95
+  <xs:attribute name="IncludeRuntimeAssemblies" type="xs:string">
96
+    <xs:annotation>
97
+      <xs:documentation>A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
98
+    </xs:annotation>
99
+  </xs:attribute>
100
+  <xs:attribute name="Unmanaged32Assemblies" type="xs:string">
101
+    <xs:annotation>
102
+      <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
103
+    </xs:annotation>
104
+  </xs:attribute>
105
+  <xs:attribute name="Unmanaged64Assemblies" type="xs:string">
106
+    <xs:annotation>
107
+      <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
108
+    </xs:annotation>
109
+  </xs:attribute>
110
+  <xs:attribute name="PreloadOrder" type="xs:string">
111
+    <xs:annotation>
112
+      <xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
113
+    </xs:annotation>
114
+  </xs:attribute>
115
+</xs:complexType>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/.signature.p7s Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/Fody.6.8.0.nupkg Zobrazit soubor


+ 21
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/License.txt Zobrazit soubor

@@ -0,0 +1,21 @@
1
+MIT License
2
+
3
+Copyright (c) Simon Cropp
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in
13
+all copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+THE SOFTWARE.

+ 147
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/build/Fody.targets Zobrazit soubor

@@ -0,0 +1,147 @@
1
+<Project>
2
+  <PropertyGroup>
3
+    <ProjectWeaverXml Condition="$(ProjectWeaverXml) == ''">$(ProjectDir)FodyWeavers.xml</ProjectWeaverXml>
4
+    <FodyPath Condition="$(FodyPath) == ''">$(MSBuildThisFileDirectory)..\</FodyPath>
5
+    <FodyAssemblyDirectory Condition="$(MSBuildRuntimeType) == 'Core'">$(FodyPath)netstandardtask</FodyAssemblyDirectory>
6
+    <FodyAssemblyDirectory Condition="$(MSBuildRuntimeType) != 'Core'">$(FodyPath)netclassictask</FodyAssemblyDirectory>
7
+    <FodyAssembly Condition="$(FodyAssembly) == ''">$(FodyAssemblyDirectory)\Fody.dll</FodyAssembly>
8
+    <DefaultItemExcludes>$(DefaultItemExcludes);FodyWeavers.xsd</DefaultItemExcludes>
9
+    <FodyGenerateXsd Condition="$(FodyGenerateXsd) == ''">true</FodyGenerateXsd>
10
+    <MsBuildMajorVersion>15</MsBuildMajorVersion>
11
+    <MsBuildMajorVersion Condition="'$(MSBuildVersion)' != ''">$([System.Version]::Parse($(MSBuildVersion)).Major)</MsBuildMajorVersion>
12
+    <FodyAfterTargets Condition="($(MsBuildMajorVersion) &lt; 17) AND '$(FodyAfterTargets)'==''">AfterCompile</FodyAfterTargets>
13
+    <TargetsTriggeredByCompilation Condition="'$(FodyAfterTargets)'==''">$(TargetsTriggeredByCompilation);FodyTarget</TargetsTriggeredByCompilation>
14
+    <DisableFody Condition='$(UseWPF)==true AND $(MSBuildProjectName.EndsWith("_wpftmp"))'>true</DisableFody>
15
+  </PropertyGroup>
16
+
17
+  <ItemGroup Condition="Exists($(ProjectWeaverXml))">
18
+    <UpToDateCheckInput Include="$(ProjectWeaverXml)" />
19
+    <CustomAdditionalCompileInputs Include="$(ProjectWeaverXml)" />
20
+  </ItemGroup>
21
+
22
+  <!-- Support for NCrunch -->
23
+  <ItemGroup Condition="'$(NCrunch)' == '1' and '$(TargetFramework)' == '' and '$(TargetFrameworks)' == ''">
24
+    <None Include="$(FodyAssemblyDirectory)\*.*" />
25
+    <None Include="@(WeaverFiles)" />
26
+  </ItemGroup>
27
+
28
+  <UsingTask TaskName="Fody.WeavingTask" AssemblyFile="$(FodyAssembly)" />
29
+  <UsingTask TaskName="Fody.UpdateCopyLocalTask" AssemblyFile="$(FodyAssembly)" />
30
+  <UsingTask TaskName="Fody.VerifyTask" AssemblyFile="$(FodyAssembly)" />
31
+
32
+  <Target
33
+      Name="FodyTarget"
34
+      AfterTargets="$(FodyAfterTargets)"
35
+      Condition="Exists(@(IntermediateAssembly)) And ($(DesignTimeBuild) != true Or $(BuildingForLiveUnitTesting) == true) And $(DisableFody) != true"
36
+      DependsOnTargets="$(FodyDependsOnTargets)"
37
+      Inputs="@(IntermediateAssembly);$(ProjectWeaverXml)"
38
+      Outputs="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache;$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.RuntimeCopyLocal.cache">
39
+
40
+    <Error Condition="($(MsBuildMajorVersion) &lt; 16)"
41
+           Text="Fody is only supported on MSBuild 16 and above. Current version: $(MsBuildMajorVersion)." />
42
+
43
+    <Fody.WeavingTask
44
+        AssemblyFile="@(IntermediateAssembly)"
45
+        IntermediateDirectory="$(ProjectDir)$(IntermediateOutputPath)"
46
+        KeyOriginatorFile="$(KeyOriginatorFile)"
47
+        AssemblyOriginatorKeyFile="$(AssemblyOriginatorKeyFile)"
48
+        ProjectDirectory="$(MSBuildProjectDirectory)"
49
+        ProjectFile="$(MSBuildProjectFullPath)"
50
+        SolutionDirectory="$(SolutionDir)"
51
+        References="@(ReferencePath)"
52
+        SignAssembly="$(SignAssembly)"
53
+        DelaySign="$(DelaySign)"
54
+        ReferenceCopyLocalFiles="@(ReferenceCopyLocalPaths)"
55
+        RuntimeCopyLocalFiles="@(RuntimeCopyLocalItems)"
56
+        DefineConstants="$(DefineConstants)"
57
+        DocumentationFile="@(DocFileItem->'%(FullPath)')"
58
+        WeaverFiles="@(WeaverFiles)"
59
+        WeaverConfiguration="$(WeaverConfiguration)"
60
+        PackageReferences="@(PackageReference)"
61
+        NCrunchOriginalSolutionDirectory="$(NCrunchOriginalSolutionDir)"
62
+        IntermediateCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache"
63
+        RuntimeCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.RuntimeCopyLocal.cache"
64
+        GenerateXsd="$(FodyGenerateXsd)"
65
+      >
66
+
67
+      <Output
68
+        TaskParameter="ExecutedWeavers"
69
+        PropertyName="FodyExecutedWeavers" />
70
+
71
+    </Fody.WeavingTask>
72
+
73
+    <ItemGroup>
74
+      <FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache" />
75
+      <FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.RuntimeCopyLocal.cache" />
76
+    </ItemGroup>
77
+
78
+  </Target>
79
+
80
+  <Target
81
+      Name="FodyUpdateReferenceCopyLocalFilesTarget"
82
+      AfterTargets="FodyTarget"
83
+    >
84
+
85
+    <Fody.UpdateCopyLocalTask
86
+        CopyLocalFiles="@(ReferenceCopyLocalPaths)"
87
+        IntermediateCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.CopyLocal.cache"
88
+      >
89
+
90
+      <Output
91
+        TaskParameter="UpdatedCopyLocalFiles"
92
+        ItemName="FodyUpdatedReferenceCopyLocalPaths" />
93
+
94
+    </Fody.UpdateCopyLocalTask>
95
+
96
+    <ItemGroup>
97
+      <FodyRemovedReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths)" />
98
+      <FodyRemovedReferenceCopyLocalPaths Remove="@(FodyUpdatedReferenceCopyLocalPaths)" />
99
+      <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" />
100
+      <ReferenceCopyLocalPaths Include="@(FodyUpdatedReferenceCopyLocalPaths)" />
101
+    </ItemGroup>
102
+
103
+  </Target>
104
+
105
+  <Target
106
+      Name="FodyUpdateRuntimeCopyLocalItemsTarget"
107
+      AfterTargets="FodyTarget"
108
+    >
109
+
110
+    <Fody.UpdateCopyLocalTask
111
+        CopyLocalFiles="@(RuntimeCopyLocalItems)"
112
+        IntermediateCopyLocalFilesCache="$(IntermediateOutputPath)$(MSBuildProjectFile).Fody.RuntimeCopyLocal.cache"
113
+      >
114
+
115
+      <Output
116
+        TaskParameter="UpdatedCopyLocalFiles"
117
+        ItemName="FodyUpdatedRuntimeCopyLocalItems" />
118
+
119
+    </Fody.UpdateCopyLocalTask>
120
+
121
+    <ItemGroup>
122
+      <FodyRemovedRuntimeCopyLocalItems Include="@(RuntimeCopyLocalItems)" />
123
+      <FodyRemovedRuntimeCopyLocalItems Remove="@(FodyUpdatedRuntimeCopyLocalItems)" />
124
+      <RuntimeCopyLocalItems Remove="@(RuntimeCopyLocalItems)" />
125
+      <RuntimeCopyLocalItems Include="@(FodyUpdatedRuntimeCopyLocalItems)" />
126
+    </ItemGroup>
127
+
128
+  </Target>
129
+
130
+  <Target
131
+      Name="FodyVerifyTarget"
132
+      AfterTargets="AfterBuild"
133
+      Condition="'$(NCrunch)' != '1' And $(FodyExecutedWeavers) != '' And $(DisableFody) != true"
134
+      DependsOnTargets="$(FodyVerifyDependsOnTargets)">
135
+
136
+    <Fody.VerifyTask
137
+        ProjectDirectory="$(MSBuildProjectDirectory)"
138
+        TargetPath="$(TargetPath)"
139
+        SolutionDirectory="$(SolutionDir)"
140
+        WeaverConfiguration="$(WeaverConfiguration)"
141
+        DefineConstants="$(DefineConstants)"
142
+        NCrunchOriginalSolutionDirectory="$(NCrunchOriginalSolutionDir)"
143
+      />
144
+
145
+  </Target>
146
+
147
+</Project>

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Fody.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyCommon.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyHelpers.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/FodyIsolated.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Pdb.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Pdb.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Rocks.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.Rocks.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netclassictask/Mono.Cecil.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Fody.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyCommon.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyHelpers.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/FodyIsolated.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Pdb.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Pdb.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Rocks.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.Rocks.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.dll Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Fody.6.8.0/netstandardtask/Mono.Cecil.pdb Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/.signature.p7s Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/Microsoft.NETCore.Platforms.1.1.0.nupkg Zobrazit soubor


+ 31
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/ThirdPartyNotices.txt Zobrazit soubor

@@ -0,0 +1,31 @@
1
+This Microsoft .NET Library may incorporate components from the projects listed
2
+below. Microsoft licenses these components under the Microsoft .NET Library
3
+software license terms. The original copyright notices and the licenses under
4
+which Microsoft received such components are set forth below for informational
5
+purposes only. Microsoft reserves all rights not expressly granted herein,
6
+whether by implication, estoppel or otherwise.
7
+
8
+1.	.NET Core (https://github.com/dotnet/core/)
9
+
10
+.NET Core
11
+Copyright (c) .NET Foundation and Contributors
12
+
13
+The MIT License (MIT)
14
+
15
+Permission is hereby granted, free of charge, to any person obtaining a copy
16
+of this software and associated documentation files (the "Software"), to deal
17
+in the Software without restriction, including without limitation the rights
18
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+copies of the Software, and to permit persons to whom the Software is
20
+furnished to do so, subject to the following conditions:
21
+
22
+The above copyright notice and this permission notice shall be included in all
23
+copies or substantial portions of the Software.
24
+
25
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+SOFTWARE.

+ 128
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/dotnet_library_license.txt Zobrazit soubor

@@ -0,0 +1,128 @@
1
+
2
+MICROSOFT SOFTWARE LICENSE TERMS
3
+
4
+
5
+MICROSOFT .NET LIBRARY 
6
+
7
+These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft
8
+
9
+·         updates,
10
+
11
+·         supplements,
12
+
13
+·         Internet-based services, and
14
+
15
+·         support services
16
+
17
+for this software, unless other terms accompany those items. If so, those terms apply.
18
+
19
+BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
20
+
21
+
22
+IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW.
23
+
24
+1.    INSTALLATION AND USE RIGHTS. 
25
+
26
+a.    Installation and Use. You may install and use any number of copies of the software to design, develop and test your programs.
27
+
28
+b.    Third Party Programs. The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party program are included for your information only.
29
+
30
+2.    ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.
31
+
32
+a.    DISTRIBUTABLE CODE.  The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in programs you develop if you comply with the terms below.
33
+
34
+i.      Right to Use and Distribute. 
35
+
36
+·         You may copy and distribute the object code form of the software.
37
+
38
+·         Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs.
39
+
40
+ii.    Distribution Requirements. For any Distributable Code you distribute, you must
41
+
42
+·         add significant primary functionality to it in your programs;
43
+
44
+·         require distributors and external end users to agree to terms that protect it at least as much as this agreement;
45
+
46
+·         display your valid copyright notice on your programs; and
47
+
48
+·         indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs.
49
+
50
+iii.   Distribution Restrictions. You may not
51
+
52
+·         alter any copyright, trademark or patent notice in the Distributable Code;
53
+
54
+·         use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft;
55
+
56
+·         include Distributable Code in malicious, deceptive or unlawful programs; or
57
+
58
+·         modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that
59
+
60
+·         the code be disclosed or distributed in source code form; or
61
+
62
+·         others have the right to modify it.
63
+
64
+3.    SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
65
+
66
+·         work around any technical limitations in the software;
67
+
68
+·         reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
69
+
70
+·         publish the software for others to copy;
71
+
72
+·         rent, lease or lend the software;
73
+
74
+·         transfer the software or this agreement to any third party; or
75
+
76
+·         use the software for commercial software hosting services.
77
+
78
+4.    BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software.
79
+
80
+5.    DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.
81
+
82
+6.    EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting.
83
+
84
+7.    SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it.
85
+
86
+8.    ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
87
+
88
+9.    APPLICABLE LAW.
89
+
90
+a.    United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
91
+
92
+b.    Outside the United States. If you acquired the software in any other country, the laws of that country apply.
93
+
94
+10.  LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.
95
+
96
+11.  DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
97
+
98
+FOR AUSTRALIA – YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS.
99
+
100
+12.  LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
101
+
102
+This limitation applies to
103
+
104
+·         anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
105
+
106
+·         claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
107
+
108
+It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
109
+
110
+Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French.
111
+
112
+Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français.
113
+
114
+EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.
115
+
116
+LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices.
117
+
118
+Cette limitation concerne :
119
+
120
+·         tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et
121
+
122
+·         les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur.
123
+
124
+Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard.
125
+
126
+EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.
127
+
128
+ 

+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/lib/netstandard1.0/_._ Zobrazit soubor


+ 406
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.NETCore.Platforms.1.1.0/runtime.json Zobrazit soubor

@@ -0,0 +1,406 @@
1
+{
2
+    "runtimes": {
3
+        "base": {
4
+        },
5
+
6
+        "any": {
7
+            "#import": [ "base" ]
8
+        },
9
+
10
+        "win": {
11
+            "#import": [ "any" ]
12
+        },
13
+        "win-x86": {
14
+            "#import": [ "win" ]
15
+        },
16
+        "win-x64": {
17
+            "#import": [ "win" ]
18
+        },
19
+
20
+        "win7": {
21
+            "#import": [ "win" ]
22
+        },
23
+        "win7-x86": {
24
+            "#import": [ "win7", "win-x86" ]
25
+        },
26
+        "win7-x64": {
27
+            "#import": [ "win7", "win-x64" ]
28
+        },
29
+
30
+        "win8": {
31
+            "#import": [ "win7" ]
32
+        },
33
+        "win8-x86": {
34
+            "#import": [ "win8", "win7-x86" ]
35
+        },
36
+        "win8-x64": {
37
+            "#import": [ "win8", "win7-x64" ]
38
+        },
39
+        "win8-arm": {
40
+            "#import": [ "win8" ]
41
+        },
42
+
43
+        "win81": {
44
+            "#import": [ "win8" ]
45
+        },
46
+        "win81-x86": {
47
+            "#import": [ "win81", "win8-x86" ]
48
+        },
49
+        "win81-x64": {
50
+            "#import": [ "win81", "win8-x64" ]
51
+        },
52
+        "win81-arm": {
53
+            "#import": [ "win81", "win8-arm" ]
54
+        },
55
+
56
+        "win10": {
57
+            "#import": [ "win81" ]
58
+        },
59
+        "win10-x86": {
60
+            "#import": [ "win10", "win81-x86" ]
61
+        },
62
+        "win10-x64": {
63
+            "#import": [ "win10", "win81-x64" ]
64
+        },
65
+        "win10-arm": {
66
+            "#import": [ "win10", "win81-arm" ]
67
+        },
68
+        "win10-arm64": {
69
+            "#import": [ "win10" ]
70
+        },
71
+
72
+        "aot": {
73
+            "#import": [ "any" ]
74
+        },
75
+
76
+        "win-aot": {
77
+            "#import": [ "win", "aot" ]
78
+        },
79
+        "win-x86-aot": {
80
+            "#import": [ "win-aot", "win-x86" ]
81
+        },
82
+        "win-x64-aot": {
83
+            "#import": [ "win-aot", "win-x64" ]
84
+        },
85
+
86
+        "win7-aot": {
87
+            "#import": [ "win-aot", "win7" ]
88
+        },
89
+        "win7-x86-aot": {
90
+            "#import": [ "win7-aot", "win7-x86" ]
91
+        },
92
+        "win7-x64-aot": {
93
+            "#import": [ "win7-aot", "win7-x64" ]
94
+        },
95
+
96
+        "win8-aot": {
97
+            "#import": [ "win8", "win7-aot" ]
98
+        },
99
+        "win8-x86-aot": {
100
+            "#import": [ "win8-aot", "win8-x86", "win7-x86-aot" ]
101
+        },
102
+        "win8-x64-aot": {
103
+            "#import": [ "win8-aot", "win8-x64", "win7-x64-aot" ]
104
+        },
105
+        "win8-arm-aot": {
106
+            "#import": [ "win8-aot", "win8-arm" ]
107
+        },
108
+
109
+        "win81-aot": {
110
+            "#import": [ "win81", "win8-aot" ]
111
+        },
112
+        "win81-x86-aot": {
113
+            "#import": [ "win81-aot", "win81-x86", "win8-x86-aot" ]
114
+        },
115
+        "win81-x64-aot": {
116
+            "#import": [ "win81-aot", "win81-x64", "win8-x64-aot" ]
117
+        },
118
+        "win81-arm-aot": {
119
+            "#import": [ "win81-aot", "win81-arm", "win8-arm-aot" ]
120
+        },
121
+
122
+        "win10-aot": {
123
+            "#import": [ "win10", "win81-aot" ]
124
+        },
125
+        "win10-x86-aot": {
126
+            "#import": [ "win10-aot", "win10-x86", "win81-x86-aot" ]
127
+        },
128
+        "win10-x64-aot": {
129
+            "#import": [ "win10-aot", "win10-x64", "win81-x64-aot" ]
130
+        },
131
+        "win10-arm-aot": {
132
+            "#import": [ "win10-aot", "win10-arm", "win81-arm-aot" ]
133
+        },
134
+        "win10-arm64-aot": {
135
+            "#import": [ "win10-aot", "win10-arm64" ]
136
+        },
137
+
138
+        "unix": {
139
+            "#import": [ "any" ]
140
+        },
141
+        "unix-x64": {
142
+            "#import": [ "unix" ]
143
+        },
144
+
145
+        "osx": {
146
+            "#import": [ "unix" ]
147
+        },
148
+        "osx-x64": {
149
+            "#import": [ "osx", "unix-x64" ]
150
+        },
151
+
152
+        "osx.10.10": {
153
+            "#import": [ "osx" ]
154
+        },
155
+        "osx.10.10-x64": {
156
+            "#import": [ "osx.10.10", "osx-x64" ]
157
+        },
158
+
159
+        "osx.10.11": {
160
+            "#import": [ "osx.10.10" ]
161
+        },
162
+        "osx.10.11-x64": {
163
+            "#import": [ "osx.10.11", "osx.10.10-x64" ]
164
+        },
165
+
166
+        "osx.10.12": {
167
+            "#import": [ "osx.10.11" ]
168
+        },
169
+        "osx.10.12-x64": {
170
+            "#import": [ "osx.10.12", "osx.10.11-x64" ]
171
+        },
172
+        
173
+        "linux": {
174
+            "#import": [ "unix" ]
175
+        },
176
+        "linux-x64": {
177
+            "#import": [ "linux", "unix-x64" ]
178
+        },
179
+
180
+        "rhel": {
181
+            "#import": [ "linux" ]
182
+        },
183
+        "rhel-x64": {
184
+            "#import": [ "rhel", "linux-x64" ]
185
+        },
186
+
187
+        "rhel.7": {
188
+            "#import": [ "rhel" ]
189
+        },
190
+        "rhel.7-x64": {
191
+            "#import": [ "rhel", "rhel-x64" ]
192
+        },
193
+
194
+        "rhel.7.0": {
195
+            "#import": [ "rhel.7" ]
196
+        },
197
+        "rhel.7.0-x64": {
198
+            "#import": [ "rhel.7", "rhel.7-x64" ]
199
+        },
200
+
201
+        "rhel.7.1": {
202
+            "#import": [ "rhel.7.0" ]
203
+        },
204
+        "rhel.7.1-x64": {
205
+            "#import": [ "rhel.7.0", "rhel.7.0-x64" ]
206
+        },
207
+
208
+        "rhel.7.2": {
209
+            "#import": [ "rhel.7.1" ]
210
+        },
211
+        "rhel.7.2-x64": {
212
+            "#import": [ "rhel.7.1", "rhel.7.1-x64" ]
213
+        },
214
+
215
+        "ol": {
216
+            "#import": [ "rhel" ]
217
+        },
218
+        "ol-x64": {
219
+            "#import": [ "ol", "rhel-x64" ]
220
+        },
221
+
222
+        "ol.7": {
223
+            "#import": [ "ol", "rhel.7" ]
224
+        },
225
+        "ol.7-x64": {
226
+            "#import": [ "ol.7", "ol-x64", "rhel.7-x64" ]
227
+        },
228
+
229
+        "ol.7.0": {
230
+            "#import": [ "ol.7", "rhel.7.0" ]
231
+        },
232
+        "ol.7.0-x64": {
233
+            "#import": [ "ol.7", "ol.7-x64", "rhel.7.0-x64" ]
234
+        },
235
+
236
+        "ol.7.1": {
237
+            "#import": [ "ol.7.0", "rhel.7.1" ]
238
+        },
239
+        "ol.7.1-x64": {
240
+            "#import": [ "ol.7.0", "ol.7.0-x64", "rhel.7.1-x64" ]
241
+        },
242
+
243
+        "ol.7.2": {
244
+            "#import": [ "ol.7.1", "rhel.7.2" ]
245
+        },
246
+        "ol.7.2-x64": {
247
+            "#import": [ "ol.7.1", "ol.7.1-x64", "rhel.7.2-x64" ]
248
+        },
249
+
250
+        "centos": {
251
+            "#import": [ "rhel" ]
252
+        },
253
+        "centos-x64": {
254
+            "#import": [ "centos", "rhel-x64" ]
255
+        },
256
+
257
+        "centos.7": {
258
+            "#import": [ "centos", "rhel.7" ]
259
+        },
260
+        "centos.7-x64": {
261
+            "#import": [ "centos.7", "centos-x64", "rhel.7-x64" ]
262
+        },
263
+
264
+        "debian": {
265
+            "#import": [ "linux" ]
266
+        },
267
+        "debian-x64": {
268
+            "#import": [ "debian", "linux-x64" ]
269
+        },
270
+
271
+        "debian.8": {
272
+            "#import": [ "debian" ]
273
+        },
274
+        "debian.8-x64": {
275
+            "#import": [ "debian.8", "debian-x64" ]
276
+        },
277
+
278
+        "ubuntu": {
279
+            "#import": [ "debian" ]
280
+        },
281
+
282
+        "ubuntu-x64": {
283
+            "#import": [ "ubuntu", "debian-x64" ]
284
+        },
285
+
286
+        "ubuntu.14.04": {
287
+            "#import": [ "ubuntu" ]
288
+        },
289
+        "ubuntu.14.04-x64": {
290
+            "#import": [ "ubuntu.14.04", "ubuntu-x64" ]
291
+        },
292
+
293
+        "ubuntu.14.10": {
294
+            "#import": [ "ubuntu" ]
295
+        },
296
+        "ubuntu.14.10-x64": {
297
+            "#import": [ "ubuntu.14.10", "ubuntu-x64" ]
298
+        },
299
+
300
+        "ubuntu.15.04": {
301
+            "#import": [ "ubuntu" ]
302
+        },
303
+        "ubuntu.15.04-x64": {
304
+            "#import": [ "ubuntu.15.04", "ubuntu-x64" ]
305
+        },
306
+
307
+        "ubuntu.15.10": {
308
+            "#import": [ "ubuntu" ]
309
+        },
310
+        "ubuntu.15.10-x64": {
311
+            "#import": [ "ubuntu.15.10", "ubuntu-x64" ]
312
+        },
313
+
314
+        "ubuntu.16.04": {
315
+            "#import": [ "ubuntu" ]
316
+        },
317
+        "ubuntu.16.04-x64": {
318
+            "#import": [ "ubuntu.16.04", "ubuntu-x64" ]
319
+        },
320
+
321
+        "ubuntu.16.10": {
322
+            "#import": [ "ubuntu" ]
323
+        },
324
+        "ubuntu.16.10-x64": {
325
+            "#import": [ "ubuntu.16.10", "ubuntu-x64" ]
326
+        },
327
+
328
+        "linuxmint.17": {
329
+            "#import": [ "ubuntu.14.04" ]
330
+        },
331
+        "linuxmint.17-x64": {
332
+            "#import": [ "linuxmint.17", "ubuntu.14.04-x64" ]
333
+        },
334
+        
335
+        "linuxmint.17.1": {
336
+            "#import": [ "linuxmint.17" ]
337
+        },
338
+        "linuxmint.17.1-x64": {
339
+            "#import": [ "linuxmint.17.1", "linuxmint.17-x64" ]
340
+        },
341
+        
342
+        "linuxmint.17.2": {
343
+            "#import": [ "linuxmint.17.1" ]
344
+        },
345
+        "linuxmint.17.2-x64": {
346
+            "#import": [ "linuxmint.17.2", "linuxmint.17.1-x64" ]
347
+        },
348
+        
349
+        "linuxmint.17.3": {
350
+            "#import": [ "linuxmint.17.2" ]
351
+        },
352
+        "linuxmint.17.3-x64": {
353
+            "#import": [ "linuxmint.17.3", "linuxmint.17.2-x64" ]
354
+        },
355
+
356
+        "linuxmint.18": {
357
+            "#import": [ "ubuntu.16.04" ]
358
+        },
359
+        "linuxmint.18-x64": {
360
+            "#import": [ "linuxmint.18", "ubuntu.16.04-x64" ]
361
+        },
362
+
363
+        "fedora": {
364
+            "#import": [ "linux" ]
365
+        },
366
+        "fedora-x64": {
367
+            "#import": [ "fedora", "linux-x64" ]
368
+        },
369
+
370
+        "fedora.23": {
371
+            "#import": [ "fedora" ]
372
+        },
373
+        "fedora.23-x64": {
374
+            "#import": [ "fedora.23", "fedora-x64" ]
375
+        },
376
+
377
+        "fedora.24": {
378
+            "#import": [ "fedora" ]
379
+        },
380
+        "fedora.24-x64": {
381
+            "#import": [ "fedora.24", "fedora-x64" ]
382
+        },
383
+
384
+        "opensuse": {
385
+            "#import": [ "linux" ]
386
+        },
387
+        "opensuse-x64": {
388
+            "#import": [ "opensuse", "linux-x64" ]
389
+        },
390
+
391
+        "opensuse.13.2": {
392
+            "#import": [ "opensuse" ]
393
+        },
394
+        "opensuse.13.2-x64": {
395
+            "#import": [ "opensuse.13.2", "opensuse-x64" ]
396
+        },
397
+
398
+        "opensuse.42.1": {
399
+            "#import": [ "opensuse" ]
400
+        },
401
+        "opensuse.42.1-x64": {
402
+            "#import": [ "opensuse.42.1", "opensuse-x64" ]
403
+        }
404
+    }
405
+ }
406
+

binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/.signature.p7s Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/Microsoft.Win32.Primitives.4.3.0.nupkg Zobrazit soubor


+ 31
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/ThirdPartyNotices.txt Zobrazit soubor

@@ -0,0 +1,31 @@
1
+This Microsoft .NET Library may incorporate components from the projects listed
2
+below. Microsoft licenses these components under the Microsoft .NET Library
3
+software license terms. The original copyright notices and the licenses under
4
+which Microsoft received such components are set forth below for informational
5
+purposes only. Microsoft reserves all rights not expressly granted herein,
6
+whether by implication, estoppel or otherwise.
7
+
8
+1.	.NET Core (https://github.com/dotnet/core/)
9
+
10
+.NET Core
11
+Copyright (c) .NET Foundation and Contributors
12
+
13
+The MIT License (MIT)
14
+
15
+Permission is hereby granted, free of charge, to any person obtaining a copy
16
+of this software and associated documentation files (the "Software"), to deal
17
+in the Software without restriction, including without limitation the rights
18
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+copies of the Software, and to permit persons to whom the Software is
20
+furnished to do so, subject to the following conditions:
21
+
22
+The above copyright notice and this permission notice shall be included in all
23
+copies or substantial portions of the Software.
24
+
25
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+SOFTWARE.

+ 128
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/dotnet_library_license.txt Zobrazit soubor

@@ -0,0 +1,128 @@
1
+
2
+MICROSOFT SOFTWARE LICENSE TERMS
3
+
4
+
5
+MICROSOFT .NET LIBRARY 
6
+
7
+These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft
8
+
9
+·         updates,
10
+
11
+·         supplements,
12
+
13
+·         Internet-based services, and
14
+
15
+·         support services
16
+
17
+for this software, unless other terms accompany those items. If so, those terms apply.
18
+
19
+BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
20
+
21
+
22
+IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW.
23
+
24
+1.    INSTALLATION AND USE RIGHTS. 
25
+
26
+a.    Installation and Use. You may install and use any number of copies of the software to design, develop and test your programs.
27
+
28
+b.    Third Party Programs. The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party program are included for your information only.
29
+
30
+2.    ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.
31
+
32
+a.    DISTRIBUTABLE CODE.  The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in programs you develop if you comply with the terms below.
33
+
34
+i.      Right to Use and Distribute. 
35
+
36
+·         You may copy and distribute the object code form of the software.
37
+
38
+·         Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs.
39
+
40
+ii.    Distribution Requirements. For any Distributable Code you distribute, you must
41
+
42
+·         add significant primary functionality to it in your programs;
43
+
44
+·         require distributors and external end users to agree to terms that protect it at least as much as this agreement;
45
+
46
+·         display your valid copyright notice on your programs; and
47
+
48
+·         indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs.
49
+
50
+iii.   Distribution Restrictions. You may not
51
+
52
+·         alter any copyright, trademark or patent notice in the Distributable Code;
53
+
54
+·         use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft;
55
+
56
+·         include Distributable Code in malicious, deceptive or unlawful programs; or
57
+
58
+·         modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that
59
+
60
+·         the code be disclosed or distributed in source code form; or
61
+
62
+·         others have the right to modify it.
63
+
64
+3.    SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
65
+
66
+·         work around any technical limitations in the software;
67
+
68
+·         reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
69
+
70
+·         publish the software for others to copy;
71
+
72
+·         rent, lease or lend the software;
73
+
74
+·         transfer the software or this agreement to any third party; or
75
+
76
+·         use the software for commercial software hosting services.
77
+
78
+4.    BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software.
79
+
80
+5.    DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.
81
+
82
+6.    EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting.
83
+
84
+7.    SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it.
85
+
86
+8.    ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
87
+
88
+9.    APPLICABLE LAW.
89
+
90
+a.    United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
91
+
92
+b.    Outside the United States. If you acquired the software in any other country, the laws of that country apply.
93
+
94
+10.  LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.
95
+
96
+11.  DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
97
+
98
+FOR AUSTRALIA – YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS.
99
+
100
+12.  LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
101
+
102
+This limitation applies to
103
+
104
+·         anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
105
+
106
+·         claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
107
+
108
+It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
109
+
110
+Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French.
111
+
112
+Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français.
113
+
114
+EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.
115
+
116
+LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices.
117
+
118
+Cette limitation concerne :
119
+
120
+·         tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et
121
+
122
+·         les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur.
123
+
124
+Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard.
125
+
126
+EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.
127
+
128
+ 

+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/MonoAndroid10/_._ Zobrazit soubor


+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/MonoTouch10/_._ Zobrazit soubor


binární
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/net46/Microsoft.Win32.Primitives.dll Zobrazit soubor


+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/xamarinios10/_._ Zobrazit soubor


+ 0
- 0
加密后软件工具/CAD插件工具/源代码/HCTools/packages/Microsoft.Win32.Primitives.4.3.0/lib/xamarinmac20/_._ Zobrazit soubor


Některé soubory nejsou zobrazny, neboť je v této revizi změněno mnoho souborů

Loading…
Zrušit
Uložit