General Mechanical

General Mechanical

How could I get the number of nodes of a selected element with apdl scripting

    • hbendeguz
      Subscriber

      I want to get the number of nodes of a selected element in apdl scripting. Does anybody know a solution for it?

    • Erik Kostson
      Ansys Employee

      On top of my head this should work - of course look through all the commands in our command reference in the help manual.


       


      So first select the element, select the nodes connected to it, and get the number of nodes: 


      ElNumber  = 1 ! element number to select


      esel,s,elem,,ElNumber ! select elment


      nsle,s ! select nodes connected to it


      *GET, MaxNodes, NODE, 0, count,  ! get the number if nodes 

    • hbendeguz
      Subscriber

      Thanks!


      It has worked.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.