🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

To automate creating Surface using Spline

GovindaraoUser: "Govindarao"
Altair Community Member
Updated by Govindarao
  • 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..

Find more posts tagged with

Sort by:
1 - 1 of 11
    Adriano_KogaUser: "Adriano_Koga"
    Altair Employee
    Accepted Answer
    Updated by Adriano_Koga

    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.