Jump to content
Sign in to follow this  

Finding centroid of holes in meshed part - TCL script

Recommended Posts



I am looking to write a script to place pre-meshed bolts at the bolt holes of an existing bolted flange mesh, an example of which would be below:




The bolt hole pattern will not always be a perfect crown, and therefore requires a more general approach


Are there any pre-existing tools in Hypermesh that I can use in a tcl script to automate this process? I know hypermesh can find and fill holes, im just wondering if it can find the hole, and tell me the centroid. Or are there any other clever ways for finding the hole centroids based on logically downselecting through tcl scripts?


Ultimately the crux is being able to find the centroid of the holes, I can manage the rest of the scripting.


If anyone has any ideas that would be greatly appreciated!







Share this post

Link to post
Share on other sites


There is available commands to detect holes. Please view reference guide for below commands


*createmark elems 1 displayed


hm_holedetectionsetentities elems 1

hm_holedetectionsetholeparams hole_shape=31

hm_holedetectionfindholes 1


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.

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.

Sign in to follow this  

  • Create New...