← Inbox

C3DO-0728 · 261101 Roswell Rd linework from the points done

Roswell Rd from the field points: west curb 322-323-324-326; the two driveway aprons (257-256-255-254-253 and 266-265-264-263-262) joining the east curb pieces already drawn to the drive returns; back of sidewalk 274-281-285-286-289; edge of pavement 261-283. Straight lines between shot points, none crossing existing linework. Lane stripes not drawn: they were shot at one station only (316-321), so there is nothing to run them along.

Script file
C3DO-0728.cs
Target
261101 - 5491 Roswell Rd NE.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
var xy=new System.Collections.Generic.Dictionary<uint,Point2d>();
foreach(ObjectId id in CivilDoc.CogoPoints){ var p=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(id,OpenMode.ForRead); xy[p.PointNumber]=new Point2d(p.Easting,p.Northing); }
Action<string,short,uint[],string> mk=(layer,col,pts,note)=>{
 var lid=EnsureLayer(layer,col);
 foreach(ObjectId id in ms){ var e=Tx.GetObject(id,OpenMode.ForRead) as Polyline; if(e!=null&&e.Layer==layer&&e.NumberOfVertices==pts.Length&&e.GetPoint2dAt(0).GetDistanceTo(xy[pts[0]])<0.01&&e.GetPoint2dAt(pts.Length-1).GetDistanceTo(xy[pts[pts.Length-1]])<0.01){ Log("  already there: "+note); return; } }
 var pl=new Polyline(); pl.SetDatabaseDefaults(); for(int i=0;i<pts.Length;i++) pl.AddVertexAt(i,xy[pts[i]],0,0,0);
 pl.LayerId=lid; pl.LinetypeScale=0.5; ms.AppendEntity(pl); Tx.AddNewlyCreatedDBObject(pl,true);
 Log(note+" (pts "+string.Join("-",pts)+"): "+pl.Length.ToString("F1")+" ft on "+layer+" ["+pl.Handle+"]"); };
mk("SS-V-ROAD-CURB",3,new uint[]{322,323,324,326},"Roswell Rd west curb (TBC)");
mk("SS-V-ROAD-CURB",3,new uint[]{257,256,255,254,253},"drive 1 apron, joins the east curb to the south return");
mk("SS-V-ROAD-CURB",3,new uint[]{266,265,264,263,262},"drive 2 apron, joins the north return to the east curb");
mk("SS-V-WALK",4,new uint[]{274,281,285,286,289},"Roswell Rd sidewalk, back of walk");
mk("SS-V-ROAD-EPVM",8,new uint[]{261,283},"Roswell Rd edge of pavement");
Ed.Regen();

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\261101 - Project\261101 - 5491 Roswell Rd NE.dwg
Message
Executed C3DO-0728 (0 entities touched).
Entities
—
Duration
559 ms
Civil 3D
25.0.0.0

Log

Roswell Rd west curb (TBC) (pts 322-323-324-326): 200.3 ft on SS-V-ROAD-CURB [214A9]
drive 1 apron, joins the east curb to the south return (pts 257-256-255-254-253): 9.7 ft on SS-V-ROAD-CURB [214AA]
drive 2 apron, joins the north return to the east curb (pts 266-265-264-263-262): 11.5 ft on SS-V-ROAD-CURB [214AB]
Roswell Rd sidewalk, back of walk (pts 274-281-285-286-289): 105.2 ft on SS-V-WALK [214AC]
Roswell Rd edge of pavement (pts 261-283): 56.3 ft on SS-V-ROAD-EPVM [214AD]

Notes

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

No notes yet.