← Inbox

C3D-0460 · Fix sidewalk strip W1 order 260904 done

Erase thin sidewalk strip 21072 and redraw 114-116-117-115 (rectangle order, no bowtie).

Script file
C3D-0460.cs
Target
260904 - 920 W Sandtown Rd SW.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
Handle h=new Handle(Convert.ToInt64("21072",16));
ObjectId bad; if(Db.TryGetObjectId(h,out bad)&&!bad.IsNull){ var e=(Autodesk.AutoCAD.DatabaseServices.Entity)Tx.GetObject(bad,OpenMode.ForWrite); e.Erase(); Log("erased W1 21072"); }
var V=new System.Collections.Generic.List<Point2d>(); V.Add(new Point2d(2152767.638000,1430432.205000));
V.Add(new Point2d(2152761.833000,1430431.197000));
V.Add(new Point2d(2152762.652000,1430429.633000));
V.Add(new Point2d(2152767.313000,1430430.624000));
var pl=new Polyline(); for(int i=0;i<V.Count;i++) pl.AddVertexAt(i,V[i],0,0,0); pl.Closed=true; pl.Layer="V-WALK";
ms.AppendEntity(pl); Tx.AddNewlyCreatedDBObject(pl,true);
Log("W1 fixed verts="+pl.NumberOfVertices+" area="+pl.Area.ToString("F0")+" handle="+pl.Handle);
Ed.Regen();

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260904 - 920 W Sandtown Rd SW, Marietta, GA 30064, USA\260904 - 920 W Sandtown Rd SW.dwg
Message
Executed C3D-0460 (0 entities touched).
Entities
Duration
572 ms
Civil 3D
25.0.0.0

Log

erased W1 21072
W1 fixed verts=4 area=8 handle=21074

Notes

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

No notes yet.