← Inbox

C3DO-0760 · 261101 south curb vs boundary (read-only) [C3D-CURBREAD] done

Read-only: boundary 21856 vertices, COGO points and curb/pavement linework near the south line.

Script file
C3DO-0760.cs
Target
261101 - 5491 Roswell Rd NE R2.dwg · model space
Author
claude
Approved
yes · read-only
Timeout
60s

C# payload

ObjectId id; Db.TryGetObjectId(new Handle(Convert.ToInt64("21856",16)),out id);
var pl=(Polyline)Tx.GetObject(id,OpenMode.ForRead);
for(int i=0;i<pl.NumberOfVertices;i++){ var q=pl.GetPoint2dAt(i); Log("BV "+i+" "+q.X.ToString("F4")+" "+q.Y.ToString("F4")); }
double x0=2232300,x1=2232640,y0=1420400,y1=1420520;
foreach(ObjectId pid in CivilDoc.CogoPoints){ var cp=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(pid,OpenMode.ForRead);
 if(cp.Easting>=x0&&cp.Easting<=x1&&cp.Northing>=y0&&cp.Northing<=y1) Log("PT "+cp.PointNumber+" "+cp.Easting.ToString("F4")+" "+cp.Northing.ToString("F4")+" |"+cp.RawDescription+"| "+cp.Layer); }
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
foreach(ObjectId eid in ms){ var en=Tx.GetObject(eid,OpenMode.ForRead) as Curve; if(en==null) continue;
 if(en.Layer.ToUpper().IndexOf("CURB")<0 && en.Layer.ToUpper().IndexOf("EOP")<0 && en.Layer.ToUpper().IndexOf("PAVE")<0) continue;
 Extents3d ex; try{ex=en.GeometricExtents;}catch{continue;}
 if(ex.MaxPoint.X<x0||ex.MinPoint.X>x1||ex.MaxPoint.Y<y0||ex.MinPoint.Y>y1) continue;
 var p2=en as Polyline; string s="CV "+eid.Handle+" "+en.GetType().Name+" "+en.Layer;
 if(p2!=null){ for(int i=0;i<p2.NumberOfVertices;i++){var q=p2.GetPoint2dAt(i); s+=" "+q.X.ToString("F3")+","+q.Y.ToString("F3");} }
 else { s+=" "+en.StartPoint.X.ToString("F3")+","+en.StartPoint.Y.ToString("F3")+" "+en.EndPoint.X.ToString("F3")+","+en.EndPoint.Y.ToString("F3"); }
 Log(s); }

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\261101 - Project\261101 - 5491 Roswell Rd NE R2.dwg
Message
Executed C3DO-0760 (0 entities touched).
Entities
—
Duration
1590 ms
Civil 3D
25.0.0.0

Log

BV 0 2232335.8260 1420451.3711
BV 1 2232330.1475 1420625.3485
BV 2 2232597.4069 1420645.7891
BV 3 2232597.3379 1420481.7614
PT 178 2232425.5794 1420517.4867 |P STRIP| 0
PT 179 2232443.7412 1420518.6629 |P STRIP| 0
PT 180 2232444.3793 1420509.8549 |P STRIP| 0
PT 181 2232425.7951 1420509.0249 |P STRIP| 0
PT 182 2232421.1153 1420498.2632 |SW COR| 0
PT 183 2232426.0225 1420494.2593 |SW COR| 0
PT 184 2232428.0836 1420494.6511 |TBC| 0
PT 185 2232428.1115 1420498.8414 |TBC| 0
PT 186 2232442.6207 1420499.3261 |TBC| 0
PT 187 2232442.9382 1420495.2713 |TBC| 0
PT 188 2232445.1154 1420497.7615 |TBC| 0
PT 189 2232468.3209 1420497.3915 |P STRIP| 0
PT 190 2232477.6158 1420498.2791 |P STRIP| 0
PT 191 2232476.5460 1420516.2383 |P STRIP| 0
PT 192 2232467.5028 1420515.4918 |P STRIP| 0
PT 195 2232495.5299 1420499.7411 |P STRIP| 0
PT 196 2232504.5988 1420499.7294 |P STRIP| 0
PT 197 2232503.1440 1420518.1464 |P STRIP| 0
PT 198 2232494.1744 1420517.7871 |P STRIP| 0
PT 202 2232549.1846 1420493.1265 |FC FL END WALL EP| 0
PT 203 2232549.9654 1420483.5288 |WALL COR EP| 0
PT 204 2232551.3808 1420482.6061 |WALL COR| 0
PT 205 2232536.2434 1420475.1231 |WALL COR  TBC| 0
PT 206 2232538.7963 1420473.6664 |WALL COR 2| 0
PT 207 2232545.3965 1420474.5192 |WALL COR 2| 0
PT 208 2232546.2264 1420470.0347 |WALL COR 2| 0
PT 209 2232548.9167 1420470.0267 |WALL COR 2| 0
PT 210 2232535.2404 1420473.7875 |PROP LINE STK| 0
PT 211 2232537.7233 1420470.4801 |WALL COR 2| 0
PT 212 2232522.7600 1420471.8329 |TBC| 0
PT 213 2232521.6999 1420467.5534 |WALL 2| 0
PT 214 2232467.3151 1420460.4875 |WALL COR 2 SW| 0
PT 215 2232461.7176 1420459.8793 |WALL COR 2 SW| 0
PT 216 2232467.0262 1420465.4974 |TBC SW| 0
PT 217 2232461.2380 1420465.0663 |TBC SW| 0
PT 218 2232442.2038 1420461.1694 |LIGHT POLE| 0
PT 219 2232458.8989 1420466.6559 |P STRIP| 0
PT 220 2232458.3826 1420473.2415 |P STRIP| 0
PT 221 2232438.2607 1420470.9623 |P STRIP| 0
PT 222 2232439.1773 1420464.4119 |P STRIP| 0
PT 223 2232434.1903 1420462.0929 |TBC| 0
PT 224 2232434.2795 1420456.7609 |WALL 2| 0
PT 225 2232415.8422 1420494.0848 |SW EP| 0
PT 226 2232415.6137 1420497.9876 |SW BRICK WALL COR| 0
PT 228 2232415.2287 1420507.4854 |BRICK WALLCOR| 0
PT 229 2232419.3485 1420507.5472 |BRICK WALLCOR| 0
PT 230 2232415.7273 1420508.6574 |BLDG COR BRICK WALLCOR| 0
PT 231 2232379.6128 1420496.5884 |SW STEP BRICK WALL END| 0
PT 232 2232375.7657 1420492.8464 |SW EP| 0
PT 233 2232375.7664 1420496.6575 |SW STEP EP| 0
PT 234 2232379.4021 1420498.5805 |SW STEP| 0
PT 235 2232375.6099 1420498.7417 |SW STEP  EP| 0
PT 236 2232383.1381 1420507.5143 |BLDG COR| 0
PT 237 2232359.0412 1420467.5065 |P STRIP| 0
PT 238 2232358.8010 1420461.3061 |P STRIP| 0
PT 239 2232337.6866 1420466.9000 |P STRIP EP| 0
PT 240 2232337.7080 1420460.4940 |EP| 0
PT 241 2232335.8411 1420458.3789 |TBC COR| 0
PT 242 2232333.4199 1420453.6942 |PP| 0
PT 243 2232335.8260 1420451.3711 |IPF 1\2" RBF| 0
PT 244 2232331.3990 1420453.1773 |UNDRG CABLE STUB| 0
PT 245 2232339.5424 1420450.0090 |SIGN| 0
PT 246 2232344.5243 1420446.3274 |WALL 2 COR| 0
PT 247 2232344.5291 1420441.0398 |WALL 2| 0
PT 248 2232347.9949 1420457.6552 |GWIRE| 0
PT 249 2232335.7663 1420467.3624 |TBC| 0
PT 250 2232335.4376 1420469.4932 |TBC| 0
PT 251 2232333.7269 1420471.6899 |TBC| 0
PT 252 2232330.3856 1420472.5275 |TBC| 0
PT 253 2232328.0378 1420472.2980 |TBC SW| 0
PT 254 2232327.4529 1420472.2428 |DWY| 0
PT 255 2232325.0538 1420470.6553 |DWY| 0
PT 256 2232322.9445 1420466.7276 |DWY| 0
PT 257 2232323.3062 1420464.9567 |TBC SW| 0
PT 258 2232324.1506 1420441.6740 |TBC SW| 0
PT 259 2232328.9185 1420443.7671 |SW| 0
PT 260 2232319.6570 1420452.4631 |MH| 0
PT 261 2232319.7581 1420502.5801 |EP| 0
PT 262 2232322.4752 1420502.9088 |TBC SW| 0
PT 263 2232321.6375 1420502.1432 |DWY| 0
PT 264 2232325.4038 1420497.9088 |DWY| 0
PT 265 2232329.4493 1420496.7114 |DWY| 0
PT 266 2232329.5267 1420497.1645 |TBC SW| 0
PT 267 2232332.0223 1420498.2046 |TBC| 0
PT 268 2232334.3001 1420501.2068 |TBC| 0
PT 269 2232334.7788 1420502.5435 |TBC| 0
PT 270 2232334.6483 1420505.8043 |TBC| 0
PT 271 2232336.3262 1420497.3450 |DI MD 7.05| 0
PT 276 2232334.6483 1420505.8043 |TBC| 0
PT 312 2232374.6104 1420507.4358 |P STRIP| 0
PT 313 2232374.7967 1420498.4671 |P STRIP| 0
PT 314 2232357.0395 1420506.9738 |P STRIP| 0
PT 315 2232357.0977 1420497.9624 |P STRIP| 0
PT 316 2232309.2920 1420441.6827 |WHITE STRIPE TUR LANE| 0
PT 330 2232597.0250 1420463.4706 |IPF 1" OTP| 0
PT 520 2232597.3379 1420481.7614 |IPS| 0
PT 524 2232335.8260 1420451.3711 |POB| 0
CV 2142D Polyline SS-V-ROAD-CURB 2232324.151,1420441.674 2232323.306,1420464.957
CV 2142E Polyline SS-V-ROAD-CURB 2232323.306,1420464.957 2232335.438,1420469.493 2232335.766,1420467.362
CV 2142F Polyline SS-V-ROAD-CURB 2232322.475,1420502.909 2232334.779,1420502.543 2232334.648,1420505.804
CV 21430 Polyline SS-V-ROAD-CURB 2232322.475,1420502.909 2232316.595,1420526.060 2232306.744,1420563.354 2232305.209,1420609.572 2232304.305,1420631.692
CV 21431 Polyline SS-V-ROAD-CURB 2232334.648,1420505.804 2232332.250,1420581.162 2232330.335,1420603.610 2232329.890,1420604.505
CV 21433 Polyline SS-V-ROAD-CURB 2232428.084,1420494.651 2232428.112,1420498.841 2232442.621,1420499.326 2232442.938,1420495.271
CV 21434 Polyline SS-V-ROAD-CURB 2232434.190,1420462.093 2232461.238,1420465.066 2232467.026,1420465.497 2232522.760,1420471.833 2232551.381,1420482.606 2232551.381,1420482.606
CV 214BB Polyline SS-V-ROAD-CURB 2232321.991,1420502.786 2232316.111,1420525.934 2232306.246,1420563.281 2232304.710,1420609.554 2232303.806,1420631.672
CV 214BC Polyline SS-V-ROAD-CURB 2232321.977,1420502.870 2232335.280,1420502.520 2232335.148,1420505.824
CV 214BE Polyline SS-V-ROAD-CURB 2232323.651,1420441.656 2232322.807,1420464.939
CV 214BF Polyline SS-V-ROAD-CURB 2232322.812,1420464.881 2232335.916,1420469.670 2232336.222,1420467.338 2232336.337,1420458.989
CV 214C0 Polyline SS-V-ROAD-CURB 2232320.537,1420502.416 2232314.659,1420525.558 2232304.752,1420563.062 2232303.211,1420609.498 2232302.307,1420631.611
CV 214C2 Polyline SS-V-ROAD-CURB 2232321.329,1420464.653 2232337.355,1420470.181 2232337.687,1420466.900 2232337.708,1420460.494
CV 214C3 Polyline SS-V-ROAD-CURB 2232322.152,1420441.602 2232321.308,1420464.884
CV 214C4 Polyline SS-V-ROAD-CURB 2232320.481,1420502.752 2232336.784,1420502.458 2232336.647,1420505.884
CV 214C5 Polyline SS-V-ROAD-CURB 2232335.148,1420505.820 2232332.750,1420581.192 2232330.817,1420603.849
CV 214C6 Polyline SS-V-ROAD-CURB 2232336.647,1420505.868 2232334.247,1420581.279 2232332.261,1420604.569
CV 214EA Line SS-V-ROAD-CURB 2232426.166,1420499.325 2232442.556,1420499.824
CV 214EB Arc SS-V-ROAD-CURB 2232442.930,1420494.771 2232442.556,1420499.824
CV 214EC Line SS-V-ROAD-CURB 2232442.930,1420494.771 2232426.022,1420494.259
CV 214EE Line SS-V-ROAD-CURB 2232426.124,1420500.776 2232442.385,1420501.319
CV 214EF Arc SS-V-ROAD-CURB 2232442.920,1420493.269 2232442.385,1420501.319
CV 214F0 Line SS-V-ROAD-CURB 2232442.920,1420493.269 2232426.070,1420492.565
CV 216AC Polyline SS-V-ROAD-CURB 2232434.136,1420462.590 2232461.192,1420465.564 2232466.979,1420465.995 2232522.672,1420472.326 2232549.965,1420483.529

Notes

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

No notes yet.