Roadmap 0.13, Market watch builds
MW.33 BimCraft: type naming rules add-on (names built from parameters and layers, batch preview, duplicates, rule files, run on open)
From MWClaim #3978-3987 (rename-pro: a Revit add-in that names types by rules; owner 2026-12-03: "all of those abilities we should have inside BIM"). BimCraft renames a family, type or element by hand, one at a time (SU.1123); there are no naming rules.
Build: a first-party BimCraft add-on "Type naming rules" (id `type-naming`, added from the Library, never bundled):
1. Rules per category (walls, floors, roofs, ceilings, doors, windows, other family types, groups): tokens from type parameters, the family name, shared/property-set values, a layer token (material + thickness per layer, outside to inside, separator chosen), prefix and suffix, metric/imperial units and rounding.
2. Merge identical adjacent layers with a count ("2x 12.5 Gypsum").
3. Value replacement pairs, and RGB colour values turned into colour names.
4. Preview of old -> new names for every type the rules touch, duplicates flagged, check boxes, Apply = one undo step.
5. Rule sets saved as a JSON file (export/import, portable to a team), metric and imperial starter sets, an optional admin lock (a PIN that stops edits to the rules in that file's settings).
6. Run on open: when switched on, the rules are checked when a model opens and a preview (or a silent apply) is offered.
Later (not this row): view and sheet names from rules.
Own code, no third-party code; no vendor name in the UI.
Built 2026-12-03: first-party BimCraft add-on `type-naming` (Type naming rules, version 0.13.0, off by default, API 1.4, BimCraft only) in the lab build at assets/apps/bimcraft/a Discord member/addons/type-naming/ (canonical source edited there directly; no sync script, it is not multi-host). Files: lib/engine.js (pure rule engine: tokens text/family/current name/property/total thickness/layers with prefix, suffix, metric or imperial, rounding, merge of identical adjacent layers with a count, replacement pairs, RGB to colour names via lib/colors.js, duplicate flagging, rename ordering with a temporary name for swaps, JSON validate, salted-hash PIN lock), lib/model.js (reads wall, floor, roof and ceiling types through readAssemblies, family sizes through familyIndex, imported types with their material layer sets; renames inside api.model.write: writeAssembly for layered types, the size pset for family sizes, Name for others), panel.js (the Type names tab: rules per category, preview with checkbox per row and select all/none, Apply, saved sets, Export/Import .json, metric and imperial starters, admin lock, run on open off/preview/silent), lang/en.json, help/type-naming-start.md (compiled), addon.json, index.json entry. Listing: tools/addons/catalog (extra-items.json + sections/type-naming.json), seeded with bin/addon-library-seed.php --only=type-naming, page /library/addons/type-naming (status lab, section check ok). Tests: node addons/type-naming/test/test.mjs = 72 passed 0 failed (engine, no DOM); tools/bimcraft-test/addons-manifests-test.mjs = 49 of 49 add-ons ok; tools/addons-test/browser-type-naming.mjs against https://getcadcraft.com/lab/bimcraft = 32 ok 0 failed (add-on switched on in Settings, two layered wall types with the same layers get one merged name and are flagged Duplicate, Apply of the ticked rows = one undo step, the wall type list shows the new names, Ctrl+Z restores, Redo renames again, replacement pair, export/import round trip, wrong file refused, PIN lock, run on open silent on bimcraft-house.ifc and preview on bimcraft-house-ops.ifc, nothing offered when no rule touches the model). Log docs/0.13-sessions/mw33-type-naming.md. Not done: groups (model groups are not renamed), view and sheet names (later, as the row says), languages other than English (language round), add-on listing images, a model that is re-opened under the same file name does not count as a new open for run on open, door and window starter kinds that are not yet types in the file are listed only once used, the rule editor has no drag-and-drop (up/down buttons).
Built 2026-12-03 (groups, views, sheets): add-on `type-naming` raised to 0.13.1. New rule categories in the same preview, one undo step, JSON export/import, PIN lock and run on open: Model groups (model-groups.js IfcGroup with CadCraft_ModelGroup; one row per definition because a group and its copies share one name; renamed with renameGroup; family groups are left alone), Views (callouts and view copies in CadCraft_CalloutViews, renamed in the entry's own JSON so range, crop and copy settings stay), Section lines and Elevation markers (IfcAnnotation + CadCraft_SectionLine, label cut at 8 characters as BimCraft keeps it), Sheets (CadCraft_Sheets: title rule AND number rule; the number must be unique and duplicates are flagged and blocked like type names; sheet views are untouched). New token types: Value from the model (level, level elevation, member count and kinds, member type names, view kind, scale, direction, main view name/kind/level, sheet size, view count, current number) and Running number (start, digits, step). Starters (metric and imperial) carry sensible group, view, section (S1), elevation (E1) and sheet (A101 + title from the main view) rules; older rule files still import and an older saved set shows the new rules switched off. Files: addons/type-naming/lib/engine.js, lib/model.js, panel.js, lang/en.json, help/type-naming-start.md (compiled), tools/addons/catalog sections/type-naming.json (listing re-seeded), tools/addons-test/browser-type-naming.mjs. Tests: engine test node addons/type-naming/test/test.mjs = 103 passed 0 failed; manifests test 49 of 49 add-ons ok; browser run against https://getcadcraft.com/lab/bimcraft = 49 ok 0 failed (a group, a callout, a plan copy, two section lines, an elevation marker and three sheets named and numbered in one step, Undo restores all, Redo again, duplicate sheet numbers flagged and blocked, export/import with the new categories and an old file, PIN lock over every rule, run on open silent and preview). The browser run also found and fixed two bugs in 0.13.0: the rule editor did not draw its token rows, and run on open could start while a model was still loading. Not done: plan views (named after their level), 3D views and schedules have no name of their own in BimCraft and are not renamed; no discipline or phase tokens (BimCraft stores neither on a view); the listing's version row was not changed (add-ons publish with the release); screenshots in /tmp/claude-0/s/640720114318/scratchpad/mw33-b-*.png.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.