C3D-260619-SCAN · Scan for redline 5,7,12,13 targets done
Read-only: existing N/F adjoiner text and positions, SS-POWER contents + power/OHP points, septic/sewer points, loaded linetypes, and tract extents for the POB tie.
C# payload
// READ-ONLY: locate what redline items 5,7,12,13 need to attach to.
var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForRead);
Log("=== existing adjoiner / N-F text (redline 7) ===");
foreach (ObjectId id in ms)
{
var e = Tx.GetObject(id, OpenMode.ForRead);
string txt = null; double x=0,y=0; string lay="";
var mt = e as MText; if (mt != null) { txt = mt.Contents; x=mt.Location.X; y=mt.Location.Y; lay=mt.Layer; }
var dt = e as DBText; if (dt != null) { txt = dt.TextString; x=dt.Position.X; y=dt.Position.Y; lay=dt.Layer; }
if (txt == null) continue;
var u = txt.ToUpper();
if (!(u.Contains("N/F") || u.Contains("THOMAS") || u.Contains("MCAULAY") || u.Contains("MNSF") ||
u.Contains("POWELL") || u.Contains("CEMETERY") || u.Contains("LATISSA"))) continue;
Log(" (" + x.ToString("F1") + "," + y.ToString("F1") + ") layer='" + lay + "' " + txt.Replace("\u005CP"," | "));
}
Log("=== SS-POWER + power/OHP points (redline 5) ===");
foreach (ObjectId id in ms)
{
var e = Tx.GetObject(id, OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity;
if (e == null || e.Layer != "SS-POWER") continue;
Extents3d ex; try { ex = e.GeometricExtents; } catch { continue; }
Log(" " + e.GetType().Name + " h=" + e.Handle + " (" + ex.MinPoint.X.ToString("F1") + "," + ex.MinPoint.Y.ToString("F1") + ")-(" +
ex.MaxPoint.X.ToString("F1") + "," + ex.MaxPoint.Y.ToString("F1") + ")");
}
var cdoc = CivilDoc;
foreach (ObjectId pid in cdoc.CogoPoints)
{
var p = Tx.GetObject(pid, OpenMode.ForRead) as CogoPoint;
if (p == null) continue;
var d = (p.RawDescription ?? "").ToUpper();
if (d.Contains("PP") || d.Contains("OHP") || d.Contains("POWER") || d.Contains("GWIRE") || d.Contains("GUY"))
Log(" PT " + p.PointNumber + " (" + p.Easting.ToString("F2") + "," + p.Northing.ToString("F2") + ") '" + p.RawDescription + "'");
}
Log("=== septic / sewer points (redline 13) ===");
foreach (ObjectId pid in cdoc.CogoPoints)
{
var p = Tx.GetObject(pid, OpenMode.ForRead) as CogoPoint;
if (p == null) continue;
var d = (p.RawDescription ?? "").ToUpper();
if (d.Contains("SEPTIC") || d.Contains("TANK") || d.Contains("DRAIN") || d.Contains("SSMH") ||
d.Contains("CO") || d.Contains("CLEAN") || d.Contains("WELL") || d.Contains("SEWER"))
Log(" PT " + p.PointNumber + " (" + p.Easting.ToString("F2") + "," + p.Northing.ToString("F2") + ") '" + p.RawDescription + "'");
}
Log("=== linetypes loaded ===");
var ltt = (LinetypeTable)Tx.GetObject(Db.LinetypeTableId, OpenMode.ForRead);
foreach (ObjectId id in ltt)
{
var lt = (LinetypeTableRecord)Tx.GetObject(id, OpenMode.ForRead);
Log(" '" + lt.Name + "' " + lt.Comments);
}
Log("=== boundary corner extremes (redline 12, POB tie) ===");
double minx=1e18,miny=1e18,maxx=-1e18,maxy=-1e18;
foreach (ObjectId id in ms)
{
var e = Tx.GetObject(id, OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity;
if (e == null) continue;
if (!(e.Layer.StartsWith("SS-HERO TRACT") || e.Layer.StartsWith("SS-BOUNDARY LAND LOT"))) continue;
Extents3d ex; try { ex = e.GeometricExtents; } catch { continue; }
if (ex.MinPoint.X < minx) minx = ex.MinPoint.X;
if (ex.MinPoint.Y < miny) miny = ex.MinPoint.Y;
if (ex.MaxPoint.X > maxx) maxx = ex.MaxPoint.X;
if (ex.MaxPoint.Y > maxy) maxy = ex.MaxPoint.Y;
}
Log(" tract/land-lot extents (" + minx.ToString("F2") + "," + miny.ToString("F2") + ")-(" + maxx.ToString("F2") + "," + maxy.ToString("F2") + ")");
Result
Log
=== existing adjoiner / N-F text (redline 7) === (2166050.0,1331000.0) layer='C-ANNO' N/F BOBBY WALKER | DB 32512 - PG 402 | MARCH 11, 2002 (2167018.2,1330800.7) layer='SS-0-FRAME' N/F JEFFERY L. VAUGHAN | APRIL 30, 2001 | DB 30326 - PG 474 | DB 16958 - PG 165 - NOT REFERENCED (2166946.5,1330559.8) layer='C-ANNO' CEMETERY (2166460.7,1330160.1) layer='C-ANNO' N/F | POWELL ANTONIO SR | | PROPERTY LINE PER | MONUMENTS FOUND | AND ADJOINER'S | DB 28196 - PG 23 (R=700.3') | | ZONING AG-1 | | PARCEL ID | 14F014300030356 (2166744.4,1330793.8) layer='C-ANNO' N/F | MNSF II W1 LLC | | PARCEL PROPERTY LINE PER | MONUMENTS FOUND | AND ADJOINER'S | DB 51448 - PG 269 | | ZONING AG-1 | | PARCEL ID | 14F0126 LL0336 (2166534.5,1330857.0) layer='C-ANNO' N/F | MC AULAY AISHA & | GROCE GREGORY | | PROPERTY LINE PER | MONUMENTS FOUND | AND ADJOINER'S | DB 52044 - PG 322 | PB 64 PG 100 | | ZONING AG-1 | | PARCEL ID | 14F0142 LL0161 (2166793.3,1330660.9) layer='C-ANNO' N/F | JEFFERY L. VAUHGAN | | DB 30326 - PG 474 | | ZONING AG-1 | | PARCEL ID | 14F0126 LL0336 === SS-POWER + power/OHP points (redline 5) === Circle h=1A9D7 (2157648.5,1323774.8)-(2172525.2,1338651.5) Line h=20CE8 (2166709.7,1330338.2)-(2166821.4,1330345.5) Polyline h=20EA8 (2166545.8,1330217.3)-(2166742.4,1330539.6) PT 123 (2166865.70,1330529.47) 'PP' PT 124 (2166871.62,1330555.84) 'OHP' PT 141 (2166821.35,1330338.20) 'PP' PT 151 (2166742.36,1330251.58) 'PP WITH LIGHT' PT 163 (2166776.73,1330144.92) 'PP' PT 194 (2166722.76,1329911.35) 'OHP' PT 195 (2166731.05,1329949.57) 'PP' PT 377 (2166542.93,1330003.24) 'PP' PT 378 (2166545.84,1330217.31) 'PP' PT 381 (2166593.59,1330225.64) 'OHP' PT 391 (2166573.53,1330261.28) 'OHP' PT 505 (2166546.05,1330539.55) 'PP' === septic / sewer points (redline 13) === PT 100 (2166727.06,1330386.50) 'EP COR' PT 137 (2166785.98,1330361.32) 'PARKING STRIPE COR' PT 145 (2166762.14,1330253.62) 'PARKING STRIPE COR' PT 148 (2166755.26,1330249.45) 'SIGN COR' PT 149 (2166744.42,1330252.24) 'SIGN COR' PT 150 (2166743.85,1330251.09) 'SIGN COR' PT 152 (2166738.87,1330244.37) 'PARKING STRIPE COR' PT 153 (2166759.30,1330239.45) 'PARKING STRIPE COR' PT 154 (2166754.67,1330247.69) 'SIGN COR' PT 203 (2166737.23,1329967.91) 'CON COR' PT 204 (2166738.51,1329972.83) 'CON COR' PT 205 (2166733.79,1329973.87) 'CON COR' PT 206 (2166732.67,1329969.11) 'CON COR' PT 215 (2166718.95,1330081.31) 'PARKING STRIPE COR' PT 216 (2166709.59,1330075.32) 'EP PARKING STRIPE COR' PT 217 (2166698.00,1330095.85) 'EP PARKING STRIPE COR' PT 218 (2166706.79,1330100.87) 'PARKING STRIPE COR' PT 219 (2166694.80,1330120.49) 'PARKING STRIPE COR' PT 220 (2166685.83,1330115.37) 'EP PARKING STRIPE COR' PT 221 (2166673.55,1330135.86) 'EP PARKING STRIPE COR' PT 222 (2166682.74,1330140.11) 'PARKING STRIPE COR' PT 223 (2166674.40,1330161.36) 'PARKING STRIPE COR' PT 224 (2166664.62,1330157.82) 'EP PARKING STRIPE COR' PT 227 (2166625.83,1330174.73) 'DWY COR' PT 228 (2166625.47,1330166.34) 'DWY COR' PT 237 (2166679.10,1330250.58) 'FACE OF 1 FT WALL COR EP' PT 238 (2166679.26,1330251.21) 'EP COR AT BRICK WALL' PT 239 (2166678.17,1330250.83) 'WALL COR BILDG COR' PT 240 (2166695.64,1330236.33) 'PARKING STRIPE COR' PT 273 (2166700.09,1330245.61) 'EP BRICK WALL COR' PT 274 (2166703.25,1330258.11) 'EP BRICK WALL COR SW' PT 275 (2166705.24,1330266.44) 'EP BRICK WALL COR SW' PT 276 (2166708.48,1330279.14) 'EP BRICK WALL COR SW' PT 277 (2166689.09,1330284.72) 'EP BRICK WALL COR SW' PT 279 (2166687.90,1330285.39) 'WALL COR' PT 280 (2166688.21,1330286.21) 'BLDG COR WALL COR' PT 285 (2166699.41,1330320.97) 'EP WALL COR' PT 286 (2166698.47,1330321.34) 'WALL COR' PT 292 (2166704.86,1330267.73) 'BRICK WALL COR' PT 293 (2166707.69,1330278.76) 'BRICK WALL COR' PT 294 (2166688.69,1330284.08) 'BRICK WALL COR' PT 295 (2166689.85,1330273.93) 'BRICK WALL COR' PT 296 (2166690.35,1330273.65) 'BLDG COR SW BRICK WALL COR' PT 297 (2166691.38,1330277.11) 'BRICK WALL COR' PT 298 (2166694.04,1330276.57) 'BRICK WALL COR SW' PT 299 (2166692.89,1330272.71) 'BRICK WALL COR SW' PT 300 (2166695.05,1330276.80) 'BRICK WALL COR' PT 301 (2166693.80,1330273.39) 'BRICK WALL COR' PT 302 (2166691.14,1330277.83) 'BRICK WALL COR' PT 303 (2166685.16,1330275.38) 'BLDG COR' PT 310 (2166690.52,1330273.59) 'TEP BLDG COR' PT 311 (2166689.71,1330271.30) 'TEP BLDG COR' PT 312 (2166688.65,1330271.59) 'TEP BLDG COR' PT 313 (2166688.44,1330270.68) 'TEP BLDG COR' PT 318 (2166686.46,1330264.07) 'STEP BLDG COR' PT 319 (2166686.25,1330263.15) 'STEP BLDG COR' PT 320 (2166687.37,1330262.79) 'STEP BLDG COR' PT 321 (2166686.69,1330260.37) 'STEP BLDG COR BRICK WALL COR' PT 322 (2166685.69,1330257.00) 'BRICK WALL COR' PT 323 (2166688.28,1330256.39) 'BRICK WALL COR' PT 331 (2166689.81,1330258.88) 'BRICK WALL COR' PT 332 (2166688.91,1330255.56) 'BRICK WALL COR' PT 333 (2166684.86,1330256.43) 'BRICK WALL COR' PT 334 (2166681.49,1330261.14) 'BLDG COR' PT 380 (2166574.58,1330243.43) 'BLDG COR' PT 383 (2166607.77,1330230.14) 'CON COR' PT 384 (2166606.09,1330230.47) 'CON COR' PT 385 (2166610.13,1330233.12) 'BLDG COR' PT 386 (2166593.88,1330232.61) 'CON COR' PT 387 (2166588.97,1330234.43) 'CON COR' PT 388 (2166589.50,1330235.25) 'DECK COR' PT 389 (2166593.79,1330233.38) 'DECK COR' PT 390 (2166575.31,1330243.42) 'BLDG COR' PT 392 (2166577.07,1330288.01) 'CON COR' PT 393 (2166581.71,1330286.45) 'CON COR' PT 398 (2166600.99,1330328.73) 'BLDG COR' PT 400 (2166615.18,1330324.33) 'BLDG COR' PT 401 (2166616.29,1330310.60) 'DECK COR STEP' PT 402 (2166611.30,1330312.15) 'DECK COR' PT 454 (2166699.94,1330523.69) 'SW COR' PT 455 (2166704.57,1330530.40) 'SW COR STEP' PT 462 (2166686.61,1330491.66) 'DWY CAR PORT COR' PT 468 (2166665.62,1330552.74) 'PORCH COR' PT 501 (2166719.04,1330448.38) 'CON COR' PT 502 (2166719.04,1330448.38) 'CON COR' PT 503 (2166706.07,1330401.58) 'CON COR' PT 504 (2166701.94,1330402.93) 'CON COR' === linetypes loaded === 'ByBlock' 'ByLayer' 'Continuous' Solid line 'CENTER2' Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___ 'HIDDEN' Hidden __ __ __ __ __ __ __ __ __ __ __ __ __ _ 'DASHED' Dashed __ __ __ __ __ __ __ __ __ __ __ __ __ _ 'PHANTOM' Phantom ______ __ __ ______ __ __ ______ 'CENTER' Center ____ _ ____ _ ____ _ ____ _ ____ _ ____ 'FENCELINE2' Fenceline square ----[]-----[]----[]-----[]---- 'DOT' Dot . . . . . . . . . . . . . . . . . . . . . . 'DASHED2' Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 'PHANTOM2' Phantom (.5x) ___ _ _ ___ _ _ ___ _ _ ___ _ _ 'DBLDASH' __________ __ __ __________ __ __ _______ 'GAS_LINE' Gas line ----GAS----GAS----GAS----GAS----GAS--- 'ACAD_ISO02W100' ISO dash __ __ __ __ __ __ __ __ __ __ __ __ __ 'DASHED4' _ _ _ _ _ _ _ _ (1/2 of Dashed2)_ _ _ _ _ _ _ _ 'ACAD_ISO05W100' ISO long-dash double-dot ____ .. ____ .. ____ . 'Sewer' Sewer ----S-----S----S-----S----S-----S-- 'Dash' Dash LINE 'DASHDOT' Dash dot __ . __ . __ . __ . __ . __ . __ . __ 'GRCV' GRCV---~~----~~--- 'FUTURE' _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 'TREE_FENCE' tree fence ----TF----TF----TF----TF----TF----TF 'FENCELINEX' Fenceline X ----X-----X----X-----X----X-----X-- 'FENCE' FENCELINE ---- X ---- X ---- X ---- 'SHORTSHORT_DASH' SHORTSHORT_DASH 'EXIST SEWER' EX SEWER ----SS----SS----SS----SS----SS----SS-- 'Solid' From Softplan 'Dashed Large' From Softplan 'Ceter' From Softplan 'Large Dash Small Space' From Softplan 'POWER_LINE' Power line ----P----P----P----P----P----P-- === boundary corner extremes (redline 12, POB tie) === tract/land-lot extents (2164854.73,1329525.91)-(2166985.69,1331173.39)
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.