← Inbox

C3D-0637 · House elevations (read-only) done

Read-only: building outline extents and every COGO point at/near the house (or described HC/house/FF/slab/porch/step/garage) with elevation.

Script file
C3D-0637.cs
Target
260714 - 285 Huckaby Rd 22x17.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
double x0=1e12,y0=1e12,x1=-1e12,y1=-1e12;
foreach(ObjectId id in ms){ var en=Tx.GetObject(id,OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity; if(en==null||en.Layer!="SS-V-BLDG-OTLN") continue; var e=en.GeometricExtents; x0=Math.Min(x0,e.MinPoint.X); y0=Math.Min(y0,e.MinPoint.Y); x1=Math.Max(x1,e.MaxPoint.X); y1=Math.Max(y1,e.MaxPoint.Y); }
Log("building outline extents ("+x0.ToString("F1")+","+y0.ToString("F1")+")-("+x1.ToString("F1")+","+y1.ToString("F1")+")");
foreach(ObjectId id in CivilDoc.CogoPoints){ var p=(CogoPoint)Tx.GetObject(id,OpenMode.ForRead);
  bool near=p.Easting>x0-40&&p.Easting<x1+40&&p.Northing>y0-40&&p.Northing<y1+40;
  var u=(p.RawDescription??"").ToUpper();
  if(near||u.Contains("HC")||u.Contains("HOUSE")||u.Contains("FF")||u.Contains("SLAB")||u.Contains("PORCH")||u.Contains("STEP")||u.Contains("GAR")||u.Contains("FLOOR"))
    Log(p.PointNumber+"|"+p.RawDescription+"|E "+p.Easting.ToString("F2")+"|N "+p.Northing.ToString("F2")+"|Z "+p.Elevation.ToString("F2")+(near?"|near house":""));
}

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd 22x17.dwg
Message
Executed C3D-0637 (0 entities touched).
Entities
—
Duration
497 ms
Civil 3D
25.0.0.0

Log

building outline extents (2206218.4,1207076.3)-(2206277.7,1207216.5)
111|DWY|E 2206313.38|N 1207158.70|Z 860.85|near house
112|DWY|E 2206300.77|N 1207168.44|Z 860.68|near house
113|DWY|E 2206285.63|N 1207173.71|Z 861.03|near house
114|DWY|E 2206273.74|N 1207175.66|Z 861.15|near house
115|DWY|E 2206237.15|N 1207178.42|Z 861.20|near house
116|DWY|E 2206236.38|N 1207158.66|Z 861.65|near house
117|DWY|E 2206242.74|N 1207158.56|Z 861.46|near house
118|DWY|E 2206242.73|N 1207158.56|Z 861.45|near house
119|DWY|E 2206248.54|N 1207157.32|Z 861.76|near house
120|DWY|E 2206252.55|N 1207153.93|Z 861.95|near house
121|DWY|E 2206254.45|N 1207148.65|Z 862.40|near house
122|DWY|E 2206254.80|N 1207143.75|Z 862.41|near house
123|DWY|E 2206270.55|N 1207144.45|Z 863.40|near house
124|DWY|E 2206272.71|N 1207148.95|Z 862.25|near house
125|DWY|E 2206276.37|N 1207153.70|Z 861.91|near house
126|DWY  SW|E 2206279.88|N 1207156.23|Z 861.59|near house
127|DWY  SW|E 2206284.56|N 1207157.71|Z 861.50|near house
128|SW|E 2206287.22|N 1207153.16|Z 861.63|near house
129|SW|E 2206283.56|N 1207151.67|Z 861.45|near house
130|SW|E 2206284.67|N 1207146.27|Z 861.46|near house
131|SW|E 2206288.57|N 1207146.80|Z 861.31|near house
132|SW|E 2206289.59|N 1207115.44|Z 861.64|near house
133|SW|E 2206285.48|N 1207115.30|Z 861.64|near house
134|SW|E 2206284.38|N 1207110.83|Z 861.75|near house
135|SW|E 2206289.26|N 1207109.51|Z 861.62|near house
136|SW|E 2206287.65|N 1207105.23|Z 861.79|near house
137|SW|E 2206284.79|N 1207102.78|Z 861.91|near house
138|SW|E 2206279.85|N 1207100.95|Z 862.03|near house
139|SW STEP|E 2206277.67|N 1207100.85|Z 862.30|near house
140|SW STEP|E 2206277.53|N 1207108.89|Z 862.21|near house
141|SW|E 2206280.16|N 1207108.83|Z 861.92|near house
142|SW|E 2206282.54|N 1207109.20|Z 861.65|near house
143|SW|E 2206284.53|N 1207110.64|Z 861.62|near house
144|HC|E 2206277.07|N 1207119.99|Z 862.82|near house
145|PORCH COR|E 2206275.80|N 1207119.75|Z 863.49|near house
146|PORCH COR|E 2206276.04|N 1207084.93|Z 862.35|near house
147|HC|E 2206263.70|N 1207076.26|Z 862.55|near house
148|A/C|E 2206240.68|N 1207071.82|Z 861.25|near house
149|CLEAN OUT|E 2206235.30|N 1207075.13|Z 860.14|near house
150|HC|E 2206226.90|N 1207076.39|Z 859.17|near house
151|HC  DECK COR|E 2206226.62|N 1207090.66|Z 859.48|near house
152|DECK COR|E 2206218.88|N 1207090.76|Z 858.95|near house
153|DECK COR STEP|E 2206218.61|N 1207119.24|Z 858.59|near house
154|STEP|E 2206218.39|N 1207124.49|Z 859.78|near house
155|STEP|E 2206221.94|N 1207124.52|Z 859.96|near house
156|CON COR|E 2206224.20|N 1207123.60|Z 859.49|near house
157|CON COR|E 2206218.56|N 1207128.63|Z 859.48|near house
158|CON COR|E 2206224.52|N 1207128.77|Z 858.11|near house
159|HC|E 2206224.14|N 1207143.51|Z 859.97|near house
160|WELL HOUSE|E 2206226.48|N 1207208.38|Z 857.97|near house
161|WELL HOUSE|E 2206221.07|N 1207211.07|Z 857.70|near house
162|WELL HOUSE|E 2206223.73|N 1207216.52|Z 857.73|near house
163|WELL HOUSE|E 2206229.13|N 1207213.64|Z 857.93|near house
164|WV|E 2206221.22|N 1207214.43|Z 857.65|near house
165|HC|E 2206276.72|N 1207132.67|Z 862.44|near house
166|HC|E 2206274.38|N 1207144.00|Z 862.13|near house
167|DWY|E 2206293.55|N 1207157.13|Z 861.48|near house
168|DWY|E 2206300.65|N 1207153.69|Z 860.91|near house
169|DWY|E 2206311.15|N 1207141.57|Z 860.84|near house
509|4INPOST OFF|E 2203437.00|N 1206804.91|Z 864.53
600|SW|E 2206284.68|N 1207157.80|Z 861.14|near house
601|SW|E 2206288.37|N 1207150.04|Z 861.24|near house
602|SW|E 2206288.83|N 1207146.62|Z 861.67|near house
603|SW|E 2206289.67|N 1207115.50|Z 861.52|near house
604|SW|E 2206289.26|N 1207108.65|Z 861.40|near house
605|SW|E 2206285.22|N 1207102.95|Z 861.76|near house
606|SW|E 2206277.67|N 1207100.75|Z 861.99|near house
607|SW|E 2206277.56|N 1207108.88|Z 862.12|near house
608|SW|E 2206280.88|N 1207108.91|Z 862.00|near house
609|SW|E 2206283.97|N 1207110.01|Z 861.86|near house
610|SW|E 2206285.36|N 1207112.57|Z 861.67|near house
611|SW|E 2206285.51|N 1207115.22|Z 861.63|near house
612|SW|E 2206284.60|N 1207147.90|Z 861.31|near house
613|SW|E 2206283.00|N 1207152.03|Z 861.55|near house
614|SW|E 2206279.82|N 1207156.18|Z 861.49|near house
615|SW|E 2206274.40|N 1207151.41|Z 861.78|near house
616|SW|E 2206270.75|N 1207143.90|Z 862.93|near house
617|SW|E 2206236.29|N 1207158.65|Z 861.10|near house
618|SW|E 2206237.20|N 1207178.66|Z 860.74|near house
619|SW|E 2206244.24|N 1207158.42|Z 861.26|near house
620|SW|E 2206251.75|N 1207155.02|Z 861.86|near house
621|SW|E 2206254.33|N 1207148.19|Z 862.02|near house
622|SW|E 2206254.93|N 1207143.87|Z 862.68|near house
623|HL|E 2206268.34|N 1207068.95|Z 861.27|near house
624|HL|E 2206268.54|N 1207059.10|Z 861.30|near house
625|HL|E 2206293.90|N 1207091.38|Z 861.82|near house
626|HL|E 2206285.12|N 1207091.28|Z 862.23|near house

Notes

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

No notes yet.