To automate creating Surface using Spline

Govindarao
Govindarao Altair Community Member
edited August 2023 in Community Q&A
  • I need to developed a macro to automate some of repetitive tasks.
  • In that, I need to create surface from displayed nodes using Spline option.
  • Following command isn’t working,

*createmark nodes 1 "displayed"

set NodeList [ hm_getmark nodes 1 ]

*surfacemode 4

eval *createlist nodes 1 $NodeList

*surfacesplineonnodesloop2 1 0  (Basically the displayed node list it is arranging in ascending order)

  • Please let me know the possible solution

Thanks in Advance

Govindarao..

Best Answer

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited August 2023 Answer ✓

    Hello Dear Adiano

    Thanks you for your comment.

    When i excecuting above script, the node number are arranging in ascending order..

    so it is unable to perform the required operation.

     

    *createmark will populate the list in ascending order.

    If you need a specific sequence, you will need to use *createlist, or *createlistpanel and pick the nodes in the right order.

    There's no way of HM knowing the right sequence.

    You could elaborate a logic of finding the closest node, maybe and sort the node sequence.

    But it is not trivial.

     

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited July 2023

    i was abgle to create a spline surfaces with your code, at least for a few nodes. What issue did you have?

    image

  • Govindarao
    Govindarao Altair Community Member
    edited August 2023

    Hello Dear Adiano

    Thanks you for your comment.

    When i excecuting above script, the node number are arranging in ascending order..

    so it is unable to perform the required operation.

     

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited August 2023 Answer ✓

    Hello Dear Adiano

    Thanks you for your comment.

    When i excecuting above script, the node number are arranging in ascending order..

    so it is unable to perform the required operation.

     

    *createmark will populate the list in ascending order.

    If you need a specific sequence, you will need to use *createlist, or *createlistpanel and pick the nodes in the right order.

    There's no way of HM knowing the right sequence.

    You could elaborate a logic of finding the closest node, maybe and sort the node sequence.

    But it is not trivial.