Preprocessing

Preprocessing

Topics related to geometry, meshing, and CAD.

How to get element coordinate system information (location, angle) for each element programmatically

    • banghuazhao
      Subscriber

      We can get local coordinate system information (location and rotation angle (in degrees) relative to the global Cartesian coordinate system.) by using "*GET, Par, CDSY, N, LOC, X (Y or Z)" or "*GET, Par, CDSY, N, ANG, XY (YZ or ZX)".


      Is there a way to get the element coordinate system information for each element programmatically?

    • peteroznewman
      Subscriber

      There is a way to display element coordinate system in Mechanical.


      There is a way to set the element coordinate system in Mechanical.

    • banghuazhao
      Subscriber

      Hi, thanks for your reply! Is there to way to get element coordinate system information programmatically?


      For example, if I want to know the centroid of an element, I can use "ExtAPI.DataModel.Project.Model.Analyses[0].MeshData.ElementById(i).Centroid" in Mechanical (Workbench) or "*GET, Par, ELEM, N, cent, x (y or z)" in Mechanical APDL.


      I am wondering if there is an API in Mechanical (Workbench) or in Mechanical APDL to extract that information. My problem needs to know all the element coordinate systems for each element.


       

Viewing 2 reply threads
  • The topic ‘How to get element coordinate system information (location, angle) for each element programmatically’ is closed to new replies.