TAGGED: export-data, script
-
-
April 9, 2024 at 12:28 pmBobSubscriberHello!ÂAt Ansys mechanical, I am conducting a 2D ball impact experiment of circles with various radious and plates with various thicknesses, as shown in the picture below.ÂAll relevant parameters will be automated using "parameter set".ÂAt this time, we want to insert python code into the solution, so run after_post whenever the geometry changes (or after each collision experiment).ÂAs far as I know, 3D geometry can be exported using the script below.ÂGraphics.Export3D("C:\\temp\\test.stl")ÂHowever, what script can be used to export 2D geometry?
-
April 10, 2024 at 2:08 pmAniketForum Moderator
If you need an STL 2D file, you can still use Graphics.Export3D API as shown in:
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v241/en/act_script/mech_apis_Graphics_Exporting.html
-Aniket
-
Viewing 1 reply thread
- The topic ‘Export 2D Geometry using Mechanical python code (script)’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- How to apply Compression-only Support?
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- Geometric stiffness matrix for solid elements
- Script Error Code:800a000d
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
Top Contributors
-
1727
-
630
-
599
-
591
-
366
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.