Finding centroid of holes in meshed part - TCL script
Hi,
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!
Thanks
Tyler
Answers
-
Hi,
There is available commands to detect holes. Please view reference guide for below commands
example:
*createmark elems 1 displayed
hm_holedetectioninit
hm_holedetectionsetentities elems 1
hm_holedetectionsetholeparams hole_shape=31
hm_holedetectionfindholes 1
....
0 -
Hi Tyler,
Related scripts for finding the centroid of a hole are also available in the Resource Library. You can access them at https://connect.altair.com/CP/script-list.html
Please sign up in the webpage mentioned and download the script.
0 -
Altair Forum User said:
Hi Tyler,
Related scripts for finding the centroid of a hole are also available in the Resource Library. You can access them at https://connect.altair.com/CP/script-list.html
Please sign up in the webpage mentioned and download the script.
Hi All,
How to go this page to download the scripts
0