C3D-0537 · 261003 linework: EP-N [C3D-0601] done
Draw EP-N (5 verts) on SS-V-ROAD-EPVM from the 236 Pinewood points.
C# payload
var lt=(LayerTable)Tx.GetObject(Db.LayerTableId,OpenMode.ForRead);
if(!lt.Has("SS-V-ROAD-EPVM")){ lt.UpgradeOpen(); var l=new LayerTableRecord{Name="SS-V-ROAD-EPVM"}; lt.Add(l); Tx.AddNewlyCreatedDBObject(l,true); }
var lr=(LayerTableRecord)Tx.GetObject(lt["SS-V-ROAD-EPVM"],OpenMode.ForRead);
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
var V=new System.Collections.Generic.List<Point2d>(); V.Add(new Point2d(2323555.5940,1582590.2640));
V.Add(new Point2d(2323599.7450,1582567.1720));
V.Add(new Point2d(2323616.4450,1582559.8260));
V.Add(new Point2d(2323658.0830,1582543.4590));
V.Add(new Point2d(2323713.8060,1582525.5960));
var pl=new Polyline(); for(int i=0;i<V.Count;i++) pl.AddVertexAt(i,V[i],0,0,0); pl.Closed=false; pl.Layer="SS-V-ROAD-EPVM";
ms.AppendEntity(pl); Tx.AddNewlyCreatedDBObject(pl,true);
Log("EP-N on SS-V-ROAD-EPVM v="+pl.NumberOfVertices+" closed="+pl.Closed+" len="+pl.Length.ToString("F1")+" h="+pl.Handle+" layerOff="+lr.IsOff+" frozen="+lr.IsFrozen);
Ed.Regen();
Result
Log
EP-N on SS-V-ROAD-EPVM v=5 closed=False len=171.3 h=2102C layerOff=False frozen=False
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.