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.
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
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.