Finding centroid of holes in meshed part - TCL script

Altair Forum User
Altair Forum User
Altair Employee
edited September 10 in Community Q&A

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

 

<?xml version="1.0" encoding="UTF-8"?>flange.jpg

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited March 2017

    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

    ....

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    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.

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

  • Sriram Sambandam
    Sriram Sambandam Altair Community Member
    edited September 10

    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.

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

    Hi All,

    How to go this page to download the scripts