C3D-FLOWCHECK · Search drawing text for flow direction notes (read-only) done
Search all text/mtext for FLOW/DIRECTIONALITY/ARROW mentions.
C# payload
// READ-ONLY: search all text/mtext in the drawing for anything about flow direction / arrows / FL.
using System;
using Autodesk.AutoCAD.DatabaseServices;
var db = Db;
using (var tr = db.TransactionManager.StartTransaction())
{
var ms = (BlockTableRecord)tr.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForRead);
int n = 0;
foreach (ObjectId id in ms)
{
var e = tr.GetObject(id, OpenMode.ForRead);
string s = null;
if (e is DBText t) s = t.TextString;
else if (e is MText m) s = m.Text;
if (string.IsNullOrWhiteSpace(s)) continue;
var u = s.ToUpperInvariant();
if (u.Contains("FLOW") || u.Contains("DIRECTIONALITY") || u.Contains("ARROW"))
{
Log($" '{s.Replace("\n"," ")}'");
n++;
}
}
Log($"matches: {n}");
tr.Commit();
}
Result
Log
matches: 0
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.