C3D-0490 · Read boundary + building geometry 260904 (read-only) [C3D-0492] done
Dump boundary and building polylines to compute house-to-property-line ties (redline #7).
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
Log("=== boundary-ish + building polylines by layer ===");
foreach(ObjectId eid in ms){ var pl=Tx.GetObject(eid,OpenMode.ForRead) as Polyline; if(pl==null) continue; string L=pl.Layer.ToUpper(); if(L.Contains("BOUND")||L.Contains("PROP")||L.Contains("BLDG")||L.Contains("HOUSE")||pl.Layer=="V-BLDG"){ var sb=new System.Text.StringBuilder(pl.Layer+" h="+pl.Handle+" v="+pl.NumberOfVertices+" closed="+pl.Closed+" | "); for(int i=0;i<pl.NumberOfVertices;i++){var p=pl.GetPoint2dAt(i); sb.Append(p.X.ToString("F2")+","+p.Y.ToString("F2")+" ");} Log(sb.ToString()); } }
Result
Log
=== boundary-ish + building polylines by layer === V-BLDG-OTLN h=1CE27 v=4 closed=True | 2153458.96,1430176.18 2153454.09,1430159.62 2153477.34,1430153.26 2153482.41,1430169.86 X-BOUNDARY h=1D3D4 v=8 closed=True | 2153538.22,1430511.36 2153659.24,1430262.13 2153645.10,1430212.26 2153527.93,1430014.88 2153315.31,1430142.85 2153327.81,1430299.49 2153377.44,1430449.38 2153449.43,1430557.34 X-BOUNDARY h=206AC v=4 closed=True | 2154273.80,1430772.77 2154207.28,1430679.31 2154321.47,1430598.29 2154387.99,1430691.75 V-BLDG h=21075 v=19 closed=True | 2152739.42,1430400.47 2152758.03,1430403.87 2152761.05,1430384.89 2152762.82,1430384.97 2152764.39,1430374.68 2152755.19,1430373.16 2152757.24,1430361.48 2152730.96,1430357.20 2152731.20,1430355.45 2152724.73,1430354.43 2152724.29,1430356.55 2152718.58,1430354.24 2152718.36,1430356.38 2152708.35,1430354.69 2152705.53,1430371.91 2152703.75,1430371.77 2152701.37,1430388.39 2152702.71,1430388.62 2152740.27,1430394.70 X-BOUNDARY CYAN h=210D4 v=7 closed=True | 2152787.16,1430567.58 2152802.25,1430465.08 2152509.91,1430404.51 2152504.34,1430429.93 2152473.06,1430572.82 2152472.82,1430585.80 2152772.16,1430568.43 X-BOUNDARY h=210E6 v=6 closed=True | 2152817.19,1430362.55 2152676.59,1430328.61 2152696.83,1430194.75 2152559.98,1430172.52 2152509.91,1430404.51 2152802.25,1430465.08 V-BLDG h=212D4 v=4 closed=True | 2152702.49,1430388.60 2152699.52,1430413.35 2152736.68,1430418.87 2152740.27,1430394.70
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.