Repository navigation
Closed
Labels
area:pythonWork in the python area.area:viewerWork in the viewer area.priority:P2Important quality, usability, or hardening work.type:featureNew product or library capability.
Description
Since #1328, an export leaves out a room whose own phase is not the export phase, and the elements that do not exist in it (RE-184). The export phase is the project's last unless rvt-ifc --phase <name|id> names another, as Revit's exporter does by default.
Only rvt-ifc has that option today:
- Python bindings (
write_ifc,export_diagnosticsand the other export entry points in rvt-py/src/lib.rs): always the last phase. - Browser viewer (rvt-wasm
export_with_controland the viewer's export and download): always the last phase. - MCP server: its tools gain a
phaseargument through One export pipeline: rvt-ifc, Python, wasm and the MCP server run the same function #1331, the shared export pipeline.
On a renovation model whose rooms sit in an earlier phase, a Python or viewer user cannot get those rooms back. Only the diagnostics count says how many were left out.
Change
Add the same option everywhere, on top of #1331's single export function:
- Python: a
phase: str | int | None = Noneargument on every export entry point and on the diagnostics, matching names exactly first, then ElementIds. An unknown phase raisesValueErrorlisting the file's phases. The type stubs (python/rvt/__init__.pyi) and docs/python.md follow. - Viewer: the export options take a phase, and the UI lists the file's phases with the last one as the default. The wasm binding gains the parameter, and docs/viewer-api.md follows.
- Defaults stay as they are (the last phase), so existing calls export the same bytes.
Done when
- A Python E2E and a viewer test on RE1 Architecture match the
rvt-ifcE2E.--phase "New Construction"and its ElementId give the default bytes,Existingleaves the 11 rooms out, and an unknown phase is an error that lists the phases. - The semver and stub checks show additions only.
Depends on #1331.
Metadata
Metadata
Assignees
Labels
area:pythonWork in the python area.area:viewerWork in the viewer area.priority:P2Important quality, usability, or hardening work.type:featureNew product or library capability.
Activity
refactor(ifc): one export function builds the model rvt-ifc, rvt-py, …
feat(schedule): rvt-schedule --phase, and Python's schedule_csv build…
fix(reader): a phase change drops the memoised walk, and the walk's n…
test(reader): a handle exported twice keeps the count of family space…
docs(python): the handle keeps the phase an export names; clear_expor…
feat(python): the export phase in Python and the viewer, as rvt-ifc -…