Jump to content

Recommended Posts

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

 

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.

Guest
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.


×
×
  • Create New...