Repository navigation
Sheets can omit the built-in title block - #294
Closed
shleycarter wants to merge 1 commit into
Closed
shleycarter wants to merge 1 commit into
shleycarter wants to merge 1 commit into
Conversation
A sheet's title_block defaults to true; false omits the stock border, title box, lettering and folding marks, for a user who draws their own on the sheet. The shared sheet renderer leaves viewports, their titles, schedules and sheet annotations alone. Number, paper size and automatic placement are unchanged. Properties has a Title Block switch; elements reports it even while true, though the project file writes it only when false. FORMAT: 18. A reader of 17 would leave the false setting out and silently print the stock frame again. An absent field defaults to true, so old sheets keep their appearance and the migration needs no conversion. Tests: actual saved PDF streams (empty off paints nothing, default equals on, viewport and annotation operators survive); save/open, old-format defaults, strict parameter refusal, creation and edit undo/redo; egui_kittest switches the sheet's property in both profiles and all three looks. Docs: README, views and graphics, sheet command help, MCP render description, and updated translation catalogues. Not done: editable title-block families or labels, a new-sheet selector, or changing automatic viewport placement when the stock block is absent. The boolean can map to None or the built-in block when title-block families arrive.
IPedrax
added a commit
that referenced
this pull request
Nov 9, 2026
Sheets can omit the built-in title block
tdslot
pushed a commit
to tdslot/BIMCraft
that referenced
this pull request
Nov 9, 2026
…x#294 onto IPedrax#304's field IPedrax#294 gave Sheet a `title_block` bool; IPedrax#304 gave it a `title_block` string, the project's title block it names ("" for the built-in one). This reworks IPedrax#294's behaviour onto IPedrax#304's field, as a third choice: `none` (titleblock::NONE). A sheet with none draws no border, title box, lettering or folding marks, and keeps its viewports, their titles, schedules, notes and detail lines, as IPedrax#294's false did; paper size and automatic placement are unchanged. - `sheet` and `modify` take `title_block: "none"` in any case, and false for it too; true or "" is the built-in one. Anything else that isn't a name is refused. - No title block of the project's may be called none (TitleBlock::check, for `name` and `rename`), and none is no library entry: renaming a title block and Purge Unused pass it by, and Model::check doesn't look for it. - Properties > Title Block offers None between Built-in and the project's own, in place of IPedrax#294's Title Block switch; Edit Title Blocks… opens on the sheet's only when it names one of the project's. - `elements` still reports every sheet's title_block, "" for the built-in. IPedrax#294's tests are kept, adapted: the PDF streams (none paints nothing, under NBR's folding marks too; false and any case of none print the same; the default equals "" and true), round trips, old files, refused values, reporting, undo and redo, and the Properties choice in both profiles and every look. New: none is no title block of the project's to name, rename or purge. FORMAT stays 18, shared with IPedrax#304. Docs: IPedrax#294's paragraph moves into views and graphics' Title blocks section; README, `sheet`'s help and the MCP render description say none.
Owner
|
Thanks, Ash! This landed on main with #304's title blocks: |
emilianocapasso
added a commit
to acpvarchitects/BIMCraft
that referenced
this pull request
Nov 9, 2026
…ents, pipe networks, title blocks, joins Upstream's 92 commits: IPedrax#280 (the room of each component), IPedrax#288 (pipe networks), IPedrax#287, IPedrax#304 (editable title blocks), IPedrax#293, IPedrax#305, IPedrax#294, IPedrax#273, a dry_run for script commands, and alignment guides on F8 only. Rooms: one rule. IPedrax#280's `Rooms::room_at` and this branch's were the same rule (the walls' centre lines, 3d9ce13); ours stays, with its `Rc` cache (`regions`), and IPedrax#280's duplicate (`room_at`, `centre_of`, `centre`) goes. Every caller now asks `Rooms::component` (the family's room calculation point, else the insertion point, in the room's plan at the centre lines and between its bottom and top): `element_json_with` (so `elements`, `inspect`'s palette JSON and schedules' Room Number and Room Name), `load_points`' count of outlets and luminaires, and IFC's IfcRelReferencedInSpatialStructure. `elements` no longer overrides `room` itself: a component outside every room leaves `room` out, as IPedrax#280 has it, rather than null. IPedrax#280's test of an outlet on the bottom wall's north face turns it to face north (angle 180): the Outlet's room calculation point stands 150 mm in front of it, toward -y, and at angle 0 it fell inside the wall, south of its centre line, as docs/areas/families.md says it should. Conflicts: - model.rs: FORMAT stays 19. Upstream is at 18, title blocks included (IPedrax#304's merge: "Title blocks stay in the file format 18"), so our Family Editor step stays 18 to 19; the 18 paragraph and the 17-to-18 comment are upstream's (title blocks, `join: false`, `across`), and our step's note says it leaves all of 18 alone. - views-and-graphics.md: both sections (Doors > Opening; sheet sizes). The title-block paragraph's "FORMAT 19" is 18. - commands.rs: upstream's arms_at, same_way and host_line, and ours' face_hosted and side_mirrored; relocate's doc comment back on relocate (it had drifted onto face_hosted), with upstream's "one wall or one run". - render.rs: `part` pub(crate) beside our `sub`; a section's wall cut finds its solids either side of a butt interface (upstream) and keeps our door and window voids' shape. - view3d.rs: upstream's tube end cuts, with our `vis: 0`. - schedule.rs: components get Room Number and Room Name beside our Elevation from Level, Work Plane, Offset from Host, Host. - tests.rs (core): both sides' hostile values, ours' nested families and upstream's strip-footing grips. - properties.rs: element_json_with, and our Group import. ui-egui tests.rs: both tests. - CLAUDE.md: ours, with upstream's titleblock.rs (2841 words). - Docs: schedules.md, structure-and-mep.md and families.md name `Rooms::component` as the one rule. - Catalogs (ui and project): ours, `cargo i18n update`, then each msgstr from either parent filled in by a 3-way merge on (msgctxt, msgid) with the base; nothing translated was lost where its msgid still exists. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NVBR7rAfyvMsaXhi1B3YLr
IPedrax
added a commit
to harijsvucens/BIMCraft
that referenced
this pull request
Nov 12, 2026
…lock, or inside its drawing area IPedrax#336's footprint packing reserved the built-in title box from the standard's margins whatever the sheet named. It now reserves the title block the sheet draws: the project's own (IPedrax#304) at its width and height, nothing on a sheet with none (IPedrax#294), whose first view goes in the middle of the border, and packs inside IPedrax#361's drawing area when the title block gives one, refusing a view whose frame and title are larger than the area. `place` still places a view that reaches past the paper, by hand or for want of room, and now says so in its reply's `warning`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Add
sheet {"title_block": false}for users who draw their own sheet frames/title blocks. Default behaviour stays on. The option omits only the built-in border, title box, stock lettering and folding marks; it retains sheet annotations, detail lines, viewports, viewport titles and schedules. Paper size and automatic placement remain unchanged.modifycan toggle the setting on an existing sheet.All drawing paths share the existing sheet renderer; the change gates its stock-title-block call rather than introducing another drawing path. The desktop exposes it as Properties > Title Block, and
elementsalways reports the value, including the default true. Command help, the MCP render description, feature documentation and translation catalogues are updated.File compatibility
The field defaults to true and is serialized only when false. Format 18 prevents an older reader from dropping the false setting and silently restoring the stock frame. Migration from format 17 needs no conversion beyond the default; an old sheet without the field keeps its existing appearance.
18 is the next format after v0.11.0's 17; if main has moved past 17 without a release, this can share that unreleased number; happy to rebase or renumber.
Relationship to the roadmap
ROADMAP plans editable title blocks as 2D families with label fields. This boolean is deliberately smaller: false maps to "None", true to the built-in block when that selection arrives. Happy to rename or reshape the field to fit the maintainer's preferred design. It does not implement title-block families, label fields or a New Sheet selector, or change automatic viewport placement above the reserved title-box area.
Tests
Command-driven tests inspect decompressed streams from actual saved PDFs:
The new tests fail on v0.11.0.
Validation:
cargo fmt --check— pass.cargo i18n check— pass.cargo clippy --workspace --all-targets -- -D warnings— pass.cargo test --workspace— pass: 2764 passed, 15 ignored