← Inbox

C3D-DUMPPTS2 · Re-dump COGO points (read-only) done

Current point numbers + E/N/Z from the open drawing.

Script file
C3D-DUMPPTS2.cs
Target
active document · model space
Author
claude
Approved
yes · claude (read-only)
Timeout
60s

C# payload

// READ-ONLY: dump every COGO point number + Easting/Northing/Elev + raw description, to compare
// against the WATER point file. One line per point, sorted by number.
using System;
using System.Linq;
using System.Collections.Generic;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.Civil.ApplicationServices;
using Autodesk.Civil.DatabaseServices;

var db = Db;
var cdoc = CivilDocument.GetCivilDocument(db);
using (var tr = db.TransactionManager.StartTransaction())
{
    var rows = new List<(int num, double e, double n, double z, string d)>();
    foreach (ObjectId id in cdoc.CogoPoints)
    {
        var cp = tr.GetObject(id, OpenMode.ForRead) as CogoPoint;
        if (cp == null) continue;
        rows.Add(((int)cp.PointNumber, cp.Easting, cp.Northing, cp.Elevation, cp.RawDescription ?? ""));
    }
    Log($"POINT COUNT: {rows.Count}");
    foreach (var r in rows.OrderByDescending(x => x.num))
        Log($"{r.num},{r.e:0.0000},{r.n:0.0000},{r.z:0.0000},{r.d}");
    tr.Commit();
}

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260613 - 5030 E Lake Pkwy, Stockbridge, GA 30281, USA\SS_Outfall_260612_SHEET.dwg
Message
Executed C3D-DUMPPTS2 (0 entities touched).
Entities
Duration
415 ms
Civil 3D
25.0.0.0

Log

POINT COUNT: 157
1114,2297422.9283,1279618.6975,687.0220,SSMH INV 15.0
1113,2297269.0497,1279597.6937,688.4282,SSMH INV 15.27
1112,2297249.7444,1279675.1510,682.7687,SSMH INV 9.62
1000,2297261.5033,1279689.3423,683.9302,TBM
161,1.0000,1345874.6588,2296301.5786,
160,2.0000,1306096.3333,2243653.8586,
159,3.0000,1345874.6588,2296301.5786,
158,4.0000,1306096.3333,2243653.8586,
157,5.0000,1279898.3279,2296968.1151,
156,6.0000,1279789.5703,2297090.6700,
155,7.0000,1279665.5327,2297230.4434,
154,8.0000,1279574.7366,2297247.1721,
153,9.0000,1279638.8816,2297419.6438,
152,10.0000,1279619.5809,2297279.5830,
151,11.0000,1279686.3157,2297267.2876,
150,12.0000,1279814.3157,2297123.0491,
149,13.0000,1279928.2461,2296994.6651,
148,14.0000,1279644.4121,2297459.7772,
147,15.0000,1279604.6500,2297464.2467,
146,16.0000,1279597.2269,2297263.8719,
145,17.0000,1279619.0688,2297422.3740,
144,100.0000,1280096.0701,2296827.2655,
143,101.0000,1280034.3199,2296877.7357,
142,102.0000,1279913.2870,2296981.3901,
141,103.0000,1279675.9242,2297248.8655,
140,104.0000,1279542.5965,2297036.9697,
139,105.0000,1279376.0918,2296995.4009,
138,106.0000,1279599.1940,2297424.6081,
137,1000.0000,1279689.3423,2297261.5033,
136,1002.0000,1280252.1890,2296946.8142,
135,1003.0000,1280286.0109,2296961.7086,
134,1004.0000,1280292.6163,2296963.5089,
133,1005.0000,1280304.8004,2296965.3418,
132,1006.0000,1280316.7487,2296966.9015,
131,1007.0000,1280324.5781,2296965.1360,
130,1008.0000,1280327.5898,2296965.0064,
129,1009.0000,1280330.5803,2296964.7381,
128,1010.0000,1280333.3038,2296964.9758,
127,1011.0000,1280336.1891,2296965.0268,
126,1012.0000,1280348.6241,2296965.2413,
125,1013.0000,1280360.9148,2296965.3093,
124,1014.0000,1280367.5696,2296965.3247,
123,1015.0000,1280361.8969,2296900.8618,
122,1016.0000,1280368.3387,2296902.1558,
121,1017.0000,1280349.7397,2296901.8335,
120,1018.0000,1280337.6627,2296900.8311,
119,1019.0000,1280328.5645,2296901.4532,
118,1020.0000,1280325.8584,2296901.6992,
117,1021.0000,1280322.7933,2296901.4666,
116,1022.0000,1280317.9107,2296901.0166,
115,1023.0000,1280320.1186,2296901.1231,
114,1024.0000,1280305.3517,2296899.4525,
113,1025.0000,1280293.3812,2296897.7157,
112,1026.0000,1280286.4667,2296898.0265,
111,1027.0000,1280286.7085,2296867.2961,
110,1028.0000,1280293.6871,2296867.4980,
109,1029.0000,1280305.8152,2296866.7612,
108,1030.0000,1280318.1035,2296867.5082,
107,1031.0000,1280318.9912,2296867.3256,
106,2297424.6081,1279599.1940,686.3720,SSMH BOLTED
105,2296995.4009,1279376.0918,687.6720,SSMH BOLTED
104,2297036.9697,1279542.5965,687.2670,SSMH MD 14.44
103,1032.0000,1280321.7653,2296866.7139,
102,2296981.3901,1279913.2870,691.2420,SSMH MD 13.96 WATER
101,2296877.7357,1280034.3199,721.4290,SSMH MD 21.95
100,2296827.2655,1280096.0701,722.6730,SSMH MD 10.3
99,1033.0000,1280324.8163,2296866.6662,
98,1034.0000,1280327.4770,2296866.7682,
97,1035.0000,1280337.9632,2296866.6154,
96,1036.0000,1280350.4104,2296867.0538,
95,1037.0000,1280362.3857,2296866.7950,
94,1038.0000,1280363.0241,2296796.6455,
93,1039.0000,1280350.8634,2296796.7527,
92,1040.0000,1280338.5839,2296796.3364,
91,1041.0000,1280326.5979,2296796.3311,
90,1042.0000,1280323.8044,2296795.6889,
89,1043.0000,1280320.8950,2296795.7520,
88,1044.0000,1280318.0798,2296795.5926,
87,1045.0000,1280306.5725,2296795.8360,
86,1046.0000,1280294.3033,2296805.5294,
85,1047.0000,1280287.3545,2296809.1592,
84,1048.0000,1280277.5549,2296833.5730,
83,1049.0000,1280274.9072,2296816.4999,
82,1050.0000,1280274.5736,2296814.9024,
81,1051.0000,1280272.4843,2296806.5195,
80,1052.0000,1280267.9711,2296797.9294,
79,1053.0000,1280261.0713,2296792.4997,
78,1054.0000,1280252.2476,2296790.2983,
77,1055.0000,1280244.2524,2296793.2967,
76,1056.0000,1280240.2203,2296802.1063,
75,1057.0000,1280237.0288,2296817.1088,
74,1058.0000,1280214.9062,2296817.0902,
73,1059.0000,1280184.9184,2296816.9677,
72,1060.0000,1280166.2334,2296816.8648,
71,1061.0000,1280166.2631,2296806.4569,
70,1062.0000,1280166.0984,2296802.2365,
69,1063.0000,1280165.7088,2296801.0511,
68,1064.0000,1280163.7137,2296799.4088,
67,1065.0000,1280154.5424,2296799.0030,
66,1066.0000,1280154.8158,2296776.7505,
65,1067.0000,1280154.9196,2296763.1635,
64,1068.0000,1280154.5436,2296760.3921,
63,1069.0000,1280153.3533,2296759.1180,
62,1070.0000,1280151.6749,2296758.5074,
61,1071.0000,1280146.4907,2296758.8326,
60,1072.0000,1280144.6081,2296759.7621,
59,1073.0000,1280144.1443,2296762.0834,
58,1074.0000,1280151.7610,2296776.6929,
57,1075.0000,1280133.2430,2296787.6262,
56,1076.0000,1280119.6897,2296765.2440,
55,1077.0000,1280119.2305,2296764.5827,
54,1078.0000,1280113.8865,2296757.2378,
53,1079.0000,1280103.0600,2296748.7332,
52,1080.0000,1280099.7569,2296747.7420,
51,1081.0000,1280082.3457,2296745.0984,
50,1082.0000,1280081.7524,2296741.7167,
49,1083.0000,1280058.5364,2296720.2725,
48,1084.0000,1280037.8940,2296698.4498,
47,1085.0000,1280036.5075,2296695.3974,
46,1086.0000,1280037.2313,2296689.4627,
45,1087.0000,1280035.6452,2296686.2958,
44,1088.0000,1280032.4036,2296684.5535,
43,1089.0000,1280021.4231,2296683.8255,
42,1090.0000,1280015.7581,2296679.6134,
41,1091.0000,1280016.1108,2296682.3536,
40,1092.0000,1280014.4792,2296682.4975,
39,1093.0000,1280014.1257,2296679.8523,
38,1094.0000,1280045.9029,2296691.0960,
37,1095.0000,1280052.2539,2296685.4010,
36,1096.0000,1280059.5974,2296683.9780,
35,1097.0000,1280067.4677,2296684.5475,
34,1098.0000,1280079.1040,2296692.6121,
33,1099.0000,1280025.0623,2296714.1431,
32,1100.0000,1280069.2034,2296639.7031,
31,1101.0000,1280069.4071,2296631.8512,
30,1102.0000,1280009.7287,2296618.4213,
29,1103.0000,1280046.1519,2296604.8917,
28,1104.0000,1279976.5037,2296655.5861,
27,1105.0000,1279951.5557,2296511.0619,
26,1106.0000,1279953.4489,2296379.8914,
25,1107.0000,1280053.7110,2296577.0583,
24,1108.0000,1280176.3128,2296576.8963,
23,1109.0000,1280209.6475,2296577.5354,
22,1110.0000,1280173.8226,2296749.6292,
21,1111.0000,1280058.0864,2296652.1460,
20,1112.0000,1279675.1510,2297249.7444,
19,1113.0000,1279597.6937,2297269.0497,
18,1114.0000,1279618.6975,2297422.9283,
15,2297464.2467,1279604.6500,2.0000,40EASEMENT
14,2297459.7772,1279644.4121,2.0000,40EASEMENT
13,2296994.6651,1279928.2461,2.0000,40EASEMENT
12,2297123.0491,1279814.3157,2.0000,40EASEMENT
11,2297267.2876,1279686.3157,2.0000,40EASEMENT
9,2297419.6438,1279638.8816,2.0000,40EASEMENT
7,2297230.4434,1279665.5327,2.0000,40EASEMENT
6,2297090.6700,1279789.5703,2.0000,40EASEMENT
5,2296968.1151,1279898.3279,2.0000,40EASEMENT

Notes

What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.

No notes yet.