← Inbox

C3D-DRAWFC · Draw Face of curb / bldg face done

Draws 1 straight-chord 3D polyline(s) from 9 FC points on layer SS-V-BLDG-FACE.

Script file
C3D-DRAWFC.cs
Target
active document · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

// Draw Face of curb / bldg face linework from surveyed points. Chained by point number, broken on gaps.
// Straight-chord 3D polylines on existing layer SS-V-BLDG-FACE. Host owns Tx/ModelSpace.
const string LAYER = "SS-V-BLDG-FACE";
var chains = new List<List<(double e,double n,double z)>> {
    new List<(double,double,double)> { (2428077.43,1064509.84,419.17), (2428081.23,1064514.45,419.25), (2428071.6,1064522.11,419.12), (2428067.87,1064517.2,419.03), (2428036.88,1064429.36,419.0), (2428029.62,1064420.35,419.03), (2427999.19,1064444.18,418.99), (2428005.91,1064452.83,419.14), (2428029.41,1064434.73,419.2) },
};
EnsureLayer(LAYER);
int drawn = 0, ptsUsed = 0;
foreach (var chain in chains)
{
    var pl = new Polyline3d(Poly3dType.SimplePoly,
        new Point3dCollection(chain.Select(p => new Point3d(p.e, p.n, p.z)).ToArray()), false);
    pl.Layer = LAYER;
    ModelSpace.AppendEntity(pl);
    Tx.AddNewlyCreatedDBObject(pl, true);
    drawn++; ptsUsed += chain.Count;
}
Log($"Drew {drawn} polylines from {ptsUsed} FC points on '{LAYER}'.");

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260709 - 1512 Bass Rd, Macon, GA 31210, USA\260709 - 1512 Bass Rd.dwg
Message
Executed C3D-DRAWFC (0 entities touched).
Entities
Duration
291 ms
Civil 3D
25.0.0.0

Log

Drew 1 polylines from 9 FC points on 'SS-V-BLDG-FACE'.

Notes

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

No notes yet.