C3D-0461 · Rebuild building from all 17 house corners 260904 done
Erase the wrong 8-corner PORCH-only building (2106A) and redraw the full footprint from all HC + PORCH COR corners (17, closed, 0 crossings) on V-BLDG.
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
Handle h=new Handle(Convert.ToInt64("2106A",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 wrong 8-corner building 2106A"); }
var V=new System.Collections.Generic.List<Point2d>(); V.Add(new Point2d(2152739.416000,1430400.467000));
V.Add(new Point2d(2152758.033000,1430403.870000));
V.Add(new Point2d(2152762.821000,1430384.968000));
V.Add(new Point2d(2152761.053000,1430384.894000));
V.Add(new Point2d(2152764.393000,1430374.679000));
V.Add(new Point2d(2152757.243000,1430361.483000));
V.Add(new Point2d(2152730.965000,1430357.195000));
V.Add(new Point2d(2152731.201000,1430355.449000));
V.Add(new Point2d(2152724.726000,1430354.433000));
V.Add(new Point2d(2152724.293000,1430356.550000));
V.Add(new Point2d(2152718.958000,1430354.328000));
V.Add(new Point2d(2152718.584000,1430354.237000));
V.Add(new Point2d(2152708.352000,1430354.692000));
V.Add(new Point2d(2152705.528000,1430371.911000));
V.Add(new Point2d(2152703.747000,1430371.774000));
V.Add(new Point2d(2152702.707000,1430388.617000));
V.Add(new Point2d(2152701.372000,1430388.389000));
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-BLDG";
ms.AppendEntity(pl); Tx.AddNewlyCreatedDBObject(pl,true);
Log("BLDG rebuilt verts="+pl.NumberOfVertices+" area="+pl.Area.ToString("F0")+" handle="+pl.Handle);
Ed.Regen();
Result
Log
erased wrong 8-corner building 2106A BLDG rebuilt verts=17 area=2269 handle=21075
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.