[Hypermesh Script] Generate new Contact Surface from an existing one
Dear all,
I need to generate a new contact surface in Hypermesh using a script getting the information from an existing one and offsetting these.
What I'm able to do is to get element id's and the face indices that compose the surface (using hm_getentityarray contactsurfs ... ). But the command *contactsurfcreatewithfaces needs as input element id's and nodes id's.
Is there a way to retrieve nodes id's starting from element id's and face indices?
Thank you very much for your help!
Bruno
Answers
-
Altair Forum User said:
Dear all,
I need to generate a new contact surface in Hypermesh using a script getting the information from an existing one and offsetting these.
What I'm able to do is to get element id's and the face indices that compose the surface (using hm_getentityarray contactsurfs ... ). But the command *contactsurfcreatewithfaces needs as input element id's and nodes id's.
Is there a way to retrieve nodes id's starting from element id's and face indices?
Thank you very much for your help!
Bruno
Hi
to get nodes of an elem:
set nodelist [hm_nodelist $elemID]
0 -
Thank you tinh for the reply! The solution was much easier than I expected. At the end I've solved using hm_getentityarray contactsurfs and *contactsurfcreatewithfacesusingfacenumber
Bruno
0