C3D-0536 · 261003 linework: EP-S [C3D-0600] done
Draw EP-S (8 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(2323552.2080,1582569.8710));
V.Add(new Point2d(2323570.8340,1582558.8970));
V.Add(new Point2d(2323592.3330,1582547.7960));
V.Add(new Point2d(2323628.7210,1582533.0200));
V.Add(new Point2d(2323654.4610,1582522.4030));
V.Add(new Point2d(2323671.7190,1582516.6060));
V.Add(new Point2d(2323698.1750,1582509.8060));
V.Add(new Point2d(2323708.2560,1582506.7390));
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-S 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-S on SS-V-ROAD-EPVM v=8 closed=False len=169.0 h=2102B layerOff=False frozen=False
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.