We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General Mechanical

General Mechanical

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

Section planes using PyMAPDL

    • Antonio Zamora
      Subscriber

      Hello,

      I'm trying to perform a section plane using PyMAPDL but after looking into the documentation I could not find the '/TYPE' equivalent command (https://ansyshelp.ansys.com/public/account/secured?returnurl=////Views/Secured/corp/v251/en/ans_cmd/Hlp_C_TYPE_sl.html).

      It seems that 'mapdl.type()' is the equivalent for the APDL 'TYPE' command (used to set the type element pointer).

      I wonder if there is any alternative to PyMAPDL '/TYPE' command to make section planes or If I'm missing something in the documentation.

      Thanks in advance.

      Best regards,

      Antonio.

    • Antonio Zamora
      Subscriber

      Hi again,

      I just have found the use of 'mapdl.run()' command to run undocumented APDL commands (https://mapdl.docs.pyansys.com/version/stable/api/_autosummary/ansys.mapdl.core.Mapdl.run.html#ansys.mapdl.core.Mapdl.run).

      I mark the thread as answered and it can be closed.

      Best regards,

      Antonio.

    • Deepak
      Ansys Employee

      Hi Antonio,

      Thanks for the update and for sharing your solution.

      You're right — Using mapdl.run() is indeed the correct approach for executing unsupported or undocumented APDL commands like /TYPE.

      Great to hear you got it working, and thanks for confirming the thread can be closed.

      Best regards,
      Deepak

Viewing 2 reply threads
  • The topic ‘Section planes using PyMAPDL’ is closed to new replies.