← Inbox

C3D-A1FIX · Update A-1 label: rim 687.07, inverts 672.36/672.43 done

7012 rim changed in worksheet. R/INV IN/INV OUT lines updated by handle; everything else verified matching.

Script file
C3D-A1FIX.cs
Target
SS_Outfall_260612_SHEET.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

// Update SSMH A-1 label only (7012 rim changed 687.27 -> 687.07 in the worksheet):
//   R 687.27      -> R 687.07       (handle B1)
//   INV IN 672.56 -> INV IN 672.36  (handle B2)
//   INV OUT 672.63 -> INV OUT 672.43 (handle 198B)
// All other labels verified matching — untouched.
using System;
using Autodesk.AutoCAD.DatabaseServices;

void Set(string h, string expect, string s)
{
    var id = Db.GetObjectId(false, new Handle(Convert.ToInt64(h, 16)), 0);
    var t = (DBText)Tx.GetObject(id, OpenMode.ForWrite);
    Log($"  h={h} '{t.TextString}' -> '{s}'{(t.TextString == expect ? "" : "  (NOTE: prior text differed from expected '" + expect + "')")}");
    t.TextString = s;
}

Log("== SSMH A-1 (7012) ==");
Set("B1", "R 687.27", "R 687.07");
Set("B2", "INV IN 672.56", "INV IN 672.36");
Set("198B", "INV OUT 672.63", "INV OUT 672.43");
Log("DONE.");

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260613 - 5030 E Lake Pkwy, Stockbridge, GA 30281, USA\SS_Outfall_260612_SHEET.dwg
Message
Executed C3D-A1FIX (0 entities touched).
Entities
Duration
331 ms
Civil 3D
25.0.0.0

Log

== SSMH A-1 (7012) ==
  h=B1 'R 687.27' -> 'R 687.07'
  h=B2 'INV IN 672.56' -> 'INV IN 672.36'
  h=198B 'INV OUT 672.63' -> 'INV OUT 672.43'
DONE.

Notes

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

No notes yet.