Skip to content

[FXC-6639] fix(): sync SUPPORTED_GEOMETRY_FILE_PATTERNS with WebUI accepted extensions#1927

Merged
mikeparkflex merged 1 commit into
mainfrom
FXC-6639/sync-geometry-file-patterns
Mar 25, 2026
Merged

[FXC-6639] fix(): sync SUPPORTED_GEOMETRY_FILE_PATTERNS with WebUI accepted extensions#1927
mikeparkflex merged 1 commit into
mainfrom
FXC-6639/sync-geometry-file-patterns

Conversation

@mikeparkflex
Copy link
Copy Markdown
Contributor

@mikeparkflex mikeparkflex commented Mar 24, 2026

Summary

  • Adds 22 missing geometry file extensions to SUPPORTED_GEOMETRY_FILE_PATTERNS in flow360/component/utils.py that the WebUI accepts but the Python client was rejecting: .stpz, .iges, .igs, .dwg, .dxf, .model, .session, .dlv, .exp, .catdrawing, .catshape, .cgr, .3dxml, .neu, .xas, .xpr, .mf1, .arc, .unv, .pkg, .ifc, .ifczip, .xmt, .rvt, .rfa, .pwd, .vda
  • Organizes the list by CAD format family with comments for readability
  • Adds a comment referencing the canonical WebUI source file to keep the lists in sync going forward

Context

The extension list was created in May 2024 and never updated, while the WebUI was expanded in the 25.8 release with many new CAD formats (IGES, AutoCAD, CATIA V4/V6, I-deas, IFC, Revit, VDA-FS, etc). Users uploading these valid formats via the Python client would get a validation error even though the backend handles them correctly.

Jira: FXC-6639

Test plan

  • pytest tests/simulation/asset/test_geometry.py -v — all 6 tests pass
  • black --check — clean
  • isort --check — clean
  • pylint --enable=C0301 — 10/10

Made with Cursor


Note

Low Risk
Low risk: only broadens filename/extension validation and adjusts a unit test string; no behavioral changes beyond accepting additional input formats.

Overview
Aligns the Python client’s geometry upload validation with the WebUI by expanding SUPPORTED_GEOMETRY_FILE_PATTERNS to include additional CAD/geometry extensions and reorganizing the list with format-family comments (plus a pointer to the WebUI source of truth).

Updates test_draft_geometry_from_file to expect the new, expanded “allowed suffixes” list in the raised error message.

Written by Cursor Bugbot for commit f186dfc. This will update automatically on new commits. Configure here.

…cepted extensions

Add 22 missing geometry file extensions that the WebUI accepts but the
Python client was rejecting: .stpz, .iges, .igs, .dwg, .dxf, .model,
.session, .dlv, .exp, .catdrawing, .catshape, .cgr, .3dxml, .neu, .xas,
.xpr, .mf1, .arc, .unv, .pkg, .ifc, .ifczip, .xmt, .rvt, .rfa, .pwd,
.vda. Organize the list by CAD format family with comments for clarity.
@mikeparkflex mikeparkflex merged commit 4fddc13 into main Mar 25, 2026
20 checks passed
@mikeparkflex mikeparkflex deleted the FXC-6639/sync-geometry-file-patterns branch March 25, 2026 09:47
benflexcompute pushed a commit that referenced this pull request Mar 25, 2026
benflexcompute added a commit that referenced this pull request Mar 25, 2026
… WebUI accepted extensions (#1927) (#1928)

Co-authored-by: Mike Park <mike@flexcompute.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants