Jump to content
BrunoP

[Hypermesh Script] Generate new Contact Surface from an existing one

Recommended Posts

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


Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...