C3D-0360 · 150' and 100' easement dims: read along the line, dim line forced inside [C3D-DIMALIGN2] done
Same as the 168.1'/122.0' change plus the flag that pass missed: sets Dimtih=false, Dimtoh=false and Dimtofl=true (dim line forced inside) as per-object overrides on the 100' (handle 21BA3) and 150' (handle 21CFD) AlignedDimensions on SS-V-POWER-EASEMENT. Dim style untouched. Reads all three flags back to verify.
C# payload
// Align 100' (21BA3) and 150' (21CFD) along the line, with the dim line forced inside.
// Three flags this time - Dimtih=false, Dimtoh=false, Dimtofl=true - the complete set the
// 168.1'/122.0' pass was missing.
var handles = new string[] { "21BA3", "21CFD" };
Log("drawing: " + Db.Filename);
var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForRead);
int changed = 0;
foreach (ObjectId id in ms) {
var probe = Tx.GetObject(id, OpenMode.ForRead) as Dimension;
if (probe == null) continue;
string h = probe.Handle.ToString();
bool target = false;
foreach (var t in handles) if (string.Equals(h, t, StringComparison.OrdinalIgnoreCase)) target = true;
if (!target) continue;
var dim = (Dimension)Tx.GetObject(id, OpenMode.ForWrite);
bool bih = dim.Dimtih, boh = dim.Dimtoh, bfl = dim.Dimtofl;
dim.Dimtih = false;
dim.Dimtoh = false;
dim.Dimtofl = true;
dim.RecomputeDimensionBlock(true);
changed++;
var back = (Dimension)Tx.GetObject(id, OpenMode.ForRead);
Log(string.Format("[{0}] \"{1}\" Dimtih {2}->{3} Dimtoh {4}->{5} Dimtofl {6}->{7} (verified)",
h, back.DimensionText, bih, back.Dimtih, boh, back.Dimtoh, bfl, back.Dimtofl));
}
Log("");
Log("aligned " + changed + " dimension(s), dim line forced inside");
Ed.Regen();
Result
Log
drawing: C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd R4.dwg [21BA3] "100'" Dimtih True->False Dimtoh True->False Dimtofl False->True (verified) [21CFD] "150'" Dimtih True->False Dimtoh True->False Dimtofl False->True (verified) aligned 2 dimension(s), dim line forced inside
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.