To automate creating Surface using Spline
- 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
-
Govindrao Deshpande said:
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.
0
Answers
-
i was abgle to create a spline surfaces with your code, at least for a few nodes. What issue did you have?
0 -
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.
0 -
Govindrao Deshpande said:
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.
0