C3D-0305 · 260610 Tara Blvd: read the category tag placements done
READ-ONLY. Current location, height, rotation, attachment and extents of the 16 category tags, plus the fixture name labels, to re-centre the tags in their boxes at 0.33 height.
C# payload
// READ-ONLY: the 16 category tags (by content) with their current placement, so they can be
// re-centred in the fixture boxes.
var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForRead);
string[] cats = { "Fresh Fruits & Vegetables", "Fresh Uncooked Meats", "Dairy Products",
"Canned Foods", "Frozen Foods", "Dry groceries and baked goods",
"Non-Alcoholic beverages" };
Log("=== CATEGORY TAGS ===");
foreach (ObjectId id in ms) {
var mt = Tx.GetObject(id, OpenMode.ForRead) as MText;
if (mt == null) continue;
bool hit = false;
foreach (var c in cats) if (mt.Contents.Trim() == c) { hit = true; break; }
if (!hit) continue;
var e = mt.GeometricExtents;
Log(string.Format("[{0}] loc({1:F3},{2:F3}) h={3:F3} rot={4:F0} attach={5} layer={6} ext({7:F2},{8:F2})-({9:F2},{10:F2}) \"{11}\"",
mt.Handle, mt.Location.X, mt.Location.Y, mt.TextHeight, mt.Rotation*180/Math.PI,
mt.Attachment, mt.Layer, e.MinPoint.X, e.MinPoint.Y, e.MaxPoint.X, e.MaxPoint.Y, mt.Contents));
}
Log("");
Log("=== OTHER STORE MTEXT (the fixture name labels) ===");
foreach (ObjectId id in ms) {
var mt = Tx.GetObject(id, OpenMode.ForRead) as MText;
if (mt == null) continue;
if (mt.Location.X < 2261060 || mt.Location.X > 2261110) continue;
if (mt.Location.Y < 1391805 || mt.Location.Y > 1391860) continue;
bool isCat = false;
foreach (var c in cats) if (mt.Contents.Trim() == c) { isCat = true; break; }
if (isCat) continue;
Log(string.Format("[{0}] loc({1:F3},{2:F3}) h={3:F3} rot={4:F0} \"{5}\"",
mt.Handle, mt.Location.X, mt.Location.Y, mt.TextHeight, mt.Rotation*180/Math.PI, mt.Contents.Replace("\n"," / ")));
}
Result
Log
=== CATEGORY TAGS === [21BE7] loc(2261080.080,1391825.960) h=0.330 rot=90 attach=BottomLeft layer=TEXT ext(2261079.65,1391825.96)-(2261080.08,1391832.31) "Dry groceries and baked goods" [21BE8] loc(2261081.313,1391826.238) h=0.330 rot=90 attach=BottomLeft layer=TEXT ext(2261080.89,1391826.24)-(2261081.31,1391832.59) "Dry groceries and baked goods" [21BEC] loc(2261089.688,1391834.034) h=0.330 rot=90 attach=BottomLeft layer=TEXT ext(2261089.26,1391834.03)-(2261089.69,1391839.11) "Non-Alcoholic beverages" [21BED] loc(2261088.222,1391826.198) h=0.330 rot=90 attach=BottomLeft layer=TEXT ext(2261087.79,1391826.20)-(2261088.22,1391832.55) "Dry groceries and baked goods" [21BF2] loc(2261065.128,1391818.595) h=0.330 rot=90 attach=BottomLeft layer=TEXT ext(2261064.79,1391818.59)-(2261065.13,1391821.38) "Frozen Foods" [21BF4] loc(2261073.155,1391848.298) h=0.330 rot=0 attach=BottomLeft layer=TEXT ext(2261073.16,1391848.30)-(2261075.94,1391848.63) "Frozen Foods" [21BF6] loc(2261097.730,1391845.039) h=0.330 rot=0 attach=BottomLeft layer=TEXT ext(2261097.73,1391845.04)-(2261102.80,1391845.47) "Non-Alcoholic beverages" [21CB9] loc(2261063.730,1391838.388) h=0.330 rot=0 attach=BottomLeft layer=TEXT ext(2261063.73,1391838.39)-(2261066.52,1391838.72) "Frozen Foods" [21D40] loc(2261083.839,1391849.968) h=0.330 rot=0 attach=BottomLeft layer=TEXT ext(2261083.84,1391849.97)-(2261088.91,1391850.40) "Non-Alcoholic beverages" === OTHER STORE MTEXT (the fixture name labels) === [21BCE] loc(2261084.071,1391831.695) h=0.600 rot=35 "Aisle" [21BCF] loc(2261075.663,1391831.608) h=0.600 rot=35 "Aisle" [21BD0] loc(2261084.443,1391808.324) h=0.600 rot=90 "locker" [21BD3] loc(2261078.597,1391843.075) h=0.600 rot=0 "chips" [21BD4] loc(2261070.607,1391843.157) h=0.600 rot=0 "chips" [21BD5] loc(2261086.546,1391843.199) h=0.600 rot=0 "candy" [21BD6] loc(2261089.160,1391834.034) h=0.600 rot=90 "drinks" [21BD7] loc(2261089.456,1391826.960) h=0.600 rot=90 "wine" [21BD8] loc(2261087.694,1391826.198) h=0.600 rot=90 "snacks" [21BDA] loc(2261071.969,1391825.950) h=0.600 rot=90 "HOUSEHOLD PRODUCTS" [21BE0] loc(2261070.159,1391850.943) h=0.600 rot=0 "checkout counters" [21BE1] loc(2261071.330,1391808.483) h=0.600 rot=0 "elec room" [21BE2] loc(2261087.548,1391810.841) h=0.600 rot=0 "gameroom" [21BE3] loc(2261098.622,1391810.580) h=0.600 rot=0 "bathroom" [21BE4] loc(2261080.295,1391808.123) h=0.600 rot=0 "exit" [21BE5] loc(2261085.484,1391855.645) h=0.600 rot=0 "entrance" [21BE9] loc(2261078.427,1391842.193) h=0.330 rot=0 "Dry groceries and\P baked goods" [21BEA] loc(2261070.427,1391842.193) h=0.330 rot=0 "Dry groceries and\P baked goods" [21BEF] loc(2261071.362,1391823.879) h=0.330 rot=0 "Dry groceries and\Pbaked goods" [21BF0] loc(2261078.987,1391824.253) h=0.330 rot=0 "Fresh Fruits &\P Vegetables" [21C06] loc(2261073.431,1391826.178) h=0.330 rot=90 "CANNED FOODS" [21C99] loc(2261087.086,1391824.106) h=0.330 rot=0 "Dry groceries and\Pbaked goods" [21CA1] loc(2261100.596,1391846.561) h=0.600 rot=90 "drinks" [21CA9] loc(2261100.557,1391829.337) h=0.600 rot=90 "beer" [21CC1] loc(2261065.128,1391825.442) h=0.330 rot=90 "dairy" [21CD6] loc(2261067.866,1391816.117) h=0.330 rot=90 "dairy" [21CDE] loc(2261071.210,1391816.142) h=0.330 rot=90 "meats" [21CED] loc(2261073.808,1391838.481) h=0.330 rot=90 "Dry groceries \Pand baked goods" [21CFB] loc(2261086.427,1391842.193) h=0.330 rot=0 "Dry groceries and\P baked goods" [21D30] loc(2261083.611,1391846.430) h=0.330 rot=0 "Dry groceries and\P baked goods"
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.