C3D-0477 · Read V-DWY + V-WALK polylines 260904 (read-only) [C3D-0478] done
Dump the DWY edge and WALK pad polyline vertices to merge each layer into one polyline.
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
foreach(ObjectId eid in ms){ var pl=Tx.GetObject(eid,OpenMode.ForRead) as Polyline; if(pl==null) continue; if(pl.Layer=="V-DWY"||pl.Layer=="V-WALK"){ var sb=new System.Text.StringBuilder(pl.Layer+" h="+pl.Handle+" v="+pl.NumberOfVertices+" cl="+pl.Closed+" | "); for(int i=0;i<pl.NumberOfVertices;i++){var p=pl.GetPoint2dAt(i); sb.Append(p.X.ToString("F3")+","+p.Y.ToString("F3")+" ");} Log(sb.ToString()); } }
Result
Log
V-DWY h=2106C v=7 cl=False | 2152678.095,1430432.434 2152733.266,1430440.406 2152766.629,1430445.204 2152801.844,1430450.099 2152806.982,1430451.763 2152811.783,1430452.779 2152818.199,1430455.842 V-DWY h=2106D v=12 cl=False | 2152678.095,1430432.434 2152680.782,1430413.557 2152697.453,1430415.754 2152699.524,1430413.350 2152736.679,1430418.867 2152736.105,1430424.885 2152737.793,1430428.946 2152760.548,1430432.025 2152768.931,1430433.369 2152804.146,1430438.265 2152813.364,1430438.554 2152821.186,1430436.597 V-WALK h=21073 v=9 cl=True | 2152764.352,1430377.380 2152771.601,1430378.564 2152773.869,1430379.486 2152774.399,1430380.974 2152774.018,1430384.485 2152768.886,1430385.319 2152768.614,1430383.895 2152767.905,1430383.186 2152763.612,1430382.313 V-WALK h=21074 v=6 cl=True | 2152768.931,1430433.369 2152760.548,1430432.025 2152762.652,1430429.633 2152768.886,1430385.319 2152774.018,1430384.485 2152767.313,1430430.624 V-DWY h=211B1 v=2 cl=False | 2152818.199,1430455.842 2152821.186,1430436.597
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.