General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Export 2D Geometry using Mechanical python code (script)

    • Bob
      Subscriber
      Hello!
       
      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?
    • Aniket
      Forum 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

      Forum Rules & Guidelines

Viewing 1 reply thread
  • The topic ‘Export 2D Geometry using Mechanical python code (script)’ is closed to new replies.