find bolt holes on solid

Pandurang
Pandurang Altair Community Member
edited March 22 in Community Q&A

Hi

 

i have solid component. having 6 holes . 2 holes having bolts.

 

i want find No of total holes and No of bolt holes like 6 and 2

 

how can we do this ...please help

 

I am using this script...

with this i can get to total number and and center of each hole...now how can i proceed..

 

i tried find attach option but did not work.

 

set centlst [];

hm_holedetectioninit
*createmark surfs 1 all
hm_holedetectionsetentities surfs 1
hm_holedetectionsettubeparams tube_shape=2 tube_type=0
hm_holedetectionfindholes 4
set n [hm_holedetectiongetnumberofholes]
if { $n > 0 } {
puts 'Number of holes = $n'
for {set i 0} {$i < $n} {incr i} {
lappend centlst [lindex  [hm_holedetectiongetholedetails $i]'3]
}

hm_holedetectionend

 

Tagged:

Answers

  • Pandurang
    Pandurang Altair Community Member
    edited May 2020

    @tinh

     

  • tinh
    tinh Altair Community Member
    edited May 2020

    It just detects holes but not bolts. You need a script to detect bolts. A simple case of bolt has 'hexagon head' that you can use to detect.

  • ATLURI BHARATH KUMAR
    ATLURI BHARATH KUMAR Altair Community Member
    edited March 20
    tinh said:

    It just detects holes but not bolts. You need a script to detect bolts. A simple case of bolt has 'hexagon head' that you can use to detect.

    Can we get detect holes only with bolts?

     

  • ATLURI BHARATH KUMAR
    ATLURI BHARATH KUMAR Altair Community Member
    edited March 22
    tinh said:

    It just detects holes but not bolts. You need a script to detect bolts. A simple case of bolt has 'hexagon head' that you can use to detect.

    How to find bolts from holes and their specifications i.e., shank diameter, shank length, head diameter, head height.