← Inbox

C3D-0022 · Tie line 378 to HC07-05 [TIE-378-676] done

Draws the control tie from point 378 (SSMH A6) to point 676 (HC07-05): 150ft stub, arrowhead at the origin, arrow size 5.0, labelled with the true computed distance of 11339.24 ft.

Script file
C3D-0022.cs
Target
260612 · model space
Author
claude
Approved
yes · reviewer
Timeout
180s

C# payload

// Control tie: point 378 (SSMH A6) -> point 676 (HC07-05).
// Same convention as the HC07-06 tie: 150ft stub, arrowhead at the ORIGIN end (leader runs
// control-end -> origin), arrow size 5.0, label along the line carrying the REAL computed
// distance of 11339.24 ft.
//
//     S12d 39' 08"W 11339.24 TO CC HC07-05
//
// Host owns Tx; host regens after commit.
const string LLAYER = "V-CTRL-LINE-SHOT", TLAYER = "V-CTRL-TEXT";
const double H = 4.0;

var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForWrite);
EnsureLayer(LLAYER, 45);
EnsureLayer(TLAYER, 7);

var ld = new Leader();
ld.AppendVertex(new Point3d(2296794.393, 1279949.636, 0.0));   // control end - tail
ld.AppendVertex(new Point3d(2296827.248, 1280095.994, 0.0));   // origin end - ARROWHEAD
ld.HasArrowHead = true;
ld.Dimasz = 5.0;
ld.Layer = LLAYER;
ms.AppendEntity(ld);
Tx.AddNewlyCreatedDBObject(ld, true);

var mt = new MText {
    Location   = new Point3d(2296810.821, 1280022.815, 0.0),
    Contents   = @"S12\U+00B0 39' 08""W 11339.24 TO CC HC07-05",
    TextHeight = H,
    Rotation   = -4.933210,
    Attachment = AttachmentPoint.BottomCenter,
};
mt.Layer = TLAYER;
ms.AppendEntity(mt);
Tx.AddNewlyCreatedDBObject(mt, true);

Log("tie 378 -> HC07-05: 150 ft stub, arrow 5.0 at the origin, true distance 11339.24 ft");
Log("  " + mt.Contents);

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260613 - 5030 E Lake Pkwy, Stockbridge, GA 30281, USA\260612 - CSTORE WATER ABS BOUNDARY.dwg
Message
Executed C3D-0022 (0 entities touched).
Entities
Duration
324 ms
Civil 3D
25.0.0.0

Log

tie 378 -> HC07-05: 150 ft stub, arrow 5.0 at the origin, true distance 11339.24 ft
  S12\U+00B0 39' 08"W 11339.24 TO CC HC07-05

Notes

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

No notes yet.