[FXC-6639] fix(): sync SUPPORTED_GEOMETRY_FILE_PATTERNS with WebUI accepted extensions#1927
Merged
Merged
Conversation
…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.
benflexcompute
approved these changes
Mar 25, 2026
benflexcompute
pushed a commit
that referenced
this pull request
Mar 25, 2026
…cepted extensions (#1927)
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.
Summary
SUPPORTED_GEOMETRY_FILE_PATTERNSinflow360/component/utils.pythat 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,.vdaContext
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 passblack --check— cleanisort --check— cleanpylint --enable=C0301— 10/10Made 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_PATTERNSto 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_fileto 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.