fix: distinguish Revit view wrappers from family blocks
Some checks failed
ci / test (macos-latest, 3.10) (push) Has been cancelled
ci / test (macos-latest, 3.12) (push) Has been cancelled
ci / test (ubuntu-latest, 3.10) (push) Has been cancelled
ci / test (ubuntu-latest, 3.12) (push) Has been cancelled
ci / test (windows-latest, 3.10) (push) Has been cancelled
ci / test (windows-latest, 3.12) (push) Has been cancelled
ci / browser-smoke (push) Has been cancelled

This commit is contained in:
2026-07-21 14:38:30 +08:00
parent 20ef26db9f
commit e0cd974c6b
2 changed files with 22 additions and 11 deletions

View File

@@ -718,7 +718,12 @@ def main() -> int:
"layer": "INSERT_NAME",
"_clip_hint": clip_hint,
"_preserve_component_union": key in preserve_component_union_keys,
"_include_block_names": [f"*-{label}"],
# Only a small number of large top-level view wrappers can be
# used as root INSERT selectors. Repeated family/component
# blocks also end in the view name in many Revit exports; using
# their suffix as a root filter drops unrelated wall/column
# INSERTs from the same floor.
**({"_include_block_names": [f"*-{label}"]} if 1 <= len(points) <= 3 and len(expanded) >= 50 else {}),
}
)