-
-
October 25, 2023 at 3:37 pmGanggui GuoSubscriber
I am using ANSYS Geometry to launch SpaceClaim. However, is there an API to open existing files, such as STP or X-T files, and perform operations on them?
-
October 26, 2023 at 7:20 amAtharv JoshiForum Moderator
Hi Ganggui,Â
Yes, you can open existing files using scripts. You need to launch Script Editor from the Design Tab and then use below script to open existing file in Ansys SpaceClaim. Please mention the file path (For e.g.: C:\Users\Downloads\Sample.x_t).Â
# Open DocumentÂ
importOptions = ImportOptions.Create()
DocumentOpen.Execute(r"file path", importOptions)Ansys SpaceClaim provides you the capability to record script for manual operation. Try opening the file with record button active.
Thanks and Regards
AtharvÂ
-
October 26, 2023 at 8:34 amGanggui GuoSubscriberfrom ansys.geometry.core import launch_modeler_with_spaceclaimmodeler_discovery = launch_modeler_with_spaceclaim()ÂI am using the Ansys.geometry API, not the internal Python script of SpaceClaim. I want to call SpaceClaim directly from an external VSCode or PyCharm. Do you have any methods to achieve this? Additionally, I would like to open SpaceClaim through VSCode, and then open geometric files such as STP or X_T formats.Â
-
October 26, 2023 at 10:36 amAtharv JoshiForum Moderator
Let me check this and get back to you.Â
-
October 30, 2023 at 2:36 pmAtharv JoshiForum Moderator
Hi Ganggui,Â
You can import the geometry files and make basic geometry operations on them. Please refer to the documentation on different file formats currently supported in PyAnsys Geometry DesignFileFormat — PyAnsys Geometry
Thanks and Regards
Atharv -
October 31, 2023 at 1:09 amGanggui GuoSubscriber
Thank you for your response. The DesignFIleFormat enumeration provides the supported file formats that can be downloaded for designs. This means it might be used to specify the format of files being downloaded, rather than the format of files being imported.
-
- The topic ‘Utilizing an API with ANSYS Geometry to launch SpaceClaim and manipulate files’ is closed to new replies.
- Data Center Simulation
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Crash by using Script Editor
- Overlapping contact face
- Temperature’s Distribution not available in Refine Mode ?
- Thermoelectric Cooler Model
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.