C3D-260619-CLERKBOX2 · Redline 3 - clerk recording box done
Adds the 3in x 3in blank clerk-of-court recording box in the upper-left of 22X17 C per OCGA 15-6-67(c)(1)(B), caption outside the box. Layer C-ANNO-CLERK.
C# payload
// REDLINE #3 - 3" x 3" clerk of court recording box, upper-left corner.
// O.C.G.A. 15-6-67(c)(1)(B) requires a blank 3x3 inch space in the upper left for the clerk's
// recording information. Sheet is 22x17; the title-block border runs (0.25,0.26)-(21.75,16.74),
// so the box is inset just inside it. Upper-left is free - the cert stack starts at x=11.56 and
// the graphic scale bar sits below y=1.0.
// Closed Polyline + caption placed OUTSIDE the box so the reserved area stays blank.
// Host owns Tx; host regens after commit.
const string LAYOUT = "22X17 C", LAYER = "C-ANNO-CLERK";
const double SIZE = 3.0;
const double X0 = 0.45, Y1 = 16.55;
double Y0 = Y1 - SIZE, X1 = X0 + SIZE;
var layDict = (DBDictionary)Tx.GetObject(Db.LayoutDictionaryId, OpenMode.ForRead);
var layout = (Layout)Tx.GetObject(layDict.GetAt(LAYOUT), OpenMode.ForRead);
var ps = (BlockTableRecord)Tx.GetObject(layout.BlockTableRecordId, OpenMode.ForWrite);
EnsureLayer(LAYER, 7);
foreach (ObjectId id in ps)
{
var p0 = Tx.GetObject(id, OpenMode.ForRead) as Polyline;
if (p0 == null || p0.Layer != LAYER) continue;
Log("clerk box already present (h=" + p0.Handle + ")"); return;
}
var pl = new Polyline();
pl.AddVertexAt(0, new Point2d(X0, Y0), 0, 0, 0);
pl.AddVertexAt(1, new Point2d(X1, Y0), 0, 0, 0);
pl.AddVertexAt(2, new Point2d(X1, Y1), 0, 0, 0);
pl.AddVertexAt(3, new Point2d(X0, Y1), 0, 0, 0);
pl.Closed = true;
pl.Layer = LAYER;
ps.AppendEntity(pl);
Tx.AddNewlyCreatedDBObject(pl, true);
var cap = new MText {
Location = new Point3d(X0, Y0 - 0.06, 0.0),
Contents = @"RESERVED FOR CLERK OF SUPERIOR COURT\PRECORDING INFORMATION - O.C.G.A. 15-6-67(c)(1)(B)",
TextHeight = 0.06,
Width = SIZE,
Attachment = AttachmentPoint.TopLeft,
};
cap.Layer = LAYER;
ps.AppendEntity(cap);
Tx.AddNewlyCreatedDBObject(cap, true);
var e = pl.GeometricExtents;
Log("clerk box " + (e.MaxPoint.X-e.MinPoint.X).ToString("F2") + " x " + (e.MaxPoint.Y-e.MinPoint.Y).ToString("F2") +
" in at (" + e.MinPoint.X.ToString("F2") + "," + e.MinPoint.Y.ToString("F2") + ")-(" +
e.MaxPoint.X.ToString("F2") + "," + e.MaxPoint.Y.ToString("F2") + ") on '" + LAYER + "' (verified)");
Result
Log
clerk box 3.00 x 3.00 in at (0.45,13.55)-(3.45,16.55) on 'C-ANNO-CLERK' (verified)
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.