🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Finding centroid of holes in meshed part - TCL script

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    ....

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

    User: "Sriram Sambandam"
    Altair Community Member
    Updated by Sriram Sambandam

    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