Skip to content

Commit e1c3a21

Browse files
test: Update Reader support info and add more import tests (#2013)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 4267125 commit e1c3a21

File tree

14 files changed

+380
-4
lines changed

14 files changed

+380
-4
lines changed

doc/changelog.d/2013.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Reader support info and add more import tests

src/ansys/geometry/core/modeler.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,8 @@ def open_file(
389389
) -> "Design":
390390
"""Open a file.
391391
392-
This method imports a design into the service. On Windows, ``.scdocx``
393-
and HOOPS Exchange formats are supported. On Linux, only the ``.scdocx``
394-
format is supported.
392+
This method imports a design into the service. On Windows and Linux, ``.scdocx``, ``.dsco``,
393+
and reader formats are supported. Please see notes for supported reader formats.
395394
396395
If the file is a shattered assembly with external references, the whole containing folder
397396
will need to be uploaded. Ensure proper folder structure in order to prevent the uploading
@@ -411,6 +410,22 @@ def open_file(
411410
-------
412411
Design
413412
Newly imported design.
413+
414+
Notes
415+
-----
416+
Format and latest supported version
417+
* AutoCAD 2024
418+
* CATIA V5 2024
419+
* CATIA V6 2024
420+
* Creo Parametric 11
421+
* IGES 5.3
422+
* Inventor 2025
423+
* JT 10.10
424+
* NX 2412
425+
* Rhino 8
426+
* Solid Edge 2025
427+
* SOLIDWORKS 2025
428+
* STEP AP242
414429
"""
415430
# Use str format of Path object here
416431
file_path = str(file_path) if isinstance(file_path, Path) else file_path
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tests/integration/files/import/Parasolid/blockhole_M.x_t

Lines changed: 266 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)