Is there a hole size variable?

Is there a hole size variable?

BASF_Ace
Contributor Contributor
1,480 Views
7 Replies
Message 1 of 8

Is there a hole size variable?

BASF_Ace
Contributor
Contributor

Hello,

 

I'm working on creating a spot - drill - tap template, and would like to use the spot drill to chamfer the edge of the hole by drilling to a specific depth. Obviously that depth is dependent on the size of the hole in question. I know that Fusion 360 recognises the size of the hole selected from the "select same diameter" check box, and would like to know what variable this value is stored in so that I can write a function sends the bottom height just deep enough to leave a chamfer on a hole of any size smaller than the spot drill. 

 

If that doesn't make sense, here's a few screenshots of what I'm trying to achieve:

This is what I'm trying to do for all hole sizesThis is what I'm trying to do for all hole sizesAnd here's an example of an expression I wrote to make sure that my peripheral roughing toolpaths always go below the bottom face of the partAnd here's an example of an expression I wrote to make sure that my peripheral roughing toolpaths always go below the bottom face of the part

 

0 Likes
Accepted solutions (1)
1,481 Views
7 Replies
Replies (7)
Message 2 of 8

Steinwerks
Mentor
Mentor
Accepted solution

Is there a reason the Chamfer Width setting won't work for your use-case? It will create a chamfer width based on the hole size, and will not drill deeper than the drill point depth in case of a hole larger than the spot drill diameter.

 

image.png

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 3 of 8

BASF_Ace
Contributor
Contributor

Wow, how long has that option for bottom height been there? That's awesome.

Message 4 of 8

BASF_Ace
Contributor
Contributor

Now if one wanted the chamfer width to be dependent on the size of the hole, one would still need the hole size variable. I'm super curious as to whether it indeed exists.

0 Likes
Message 5 of 8

Steinwerks
Mentor
Mentor

Looks like the parameter name is HoleFaces. Not sure exactly what it pulls from this, but it's a start.

 

image.png

 

Edit: Interestingly enough, if you post out a drill operation with the dump.cps it gives you some nice variables to pull from as well: 

 

image.png

 

There are a few more in there as well. There's a lot going on behind the scenes so I bet you could automate this, maybe start with a chamfer size of 0 and have the post do the rest of the calculation?

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 6 of 8

BASF_Ace
Contributor
Contributor

Interestingly enough the actual value of the hole's diameter does not appear anywhere in the dump file, which is a little disheartening. Not sure how you'd get the post processor to calculate the right depth if it doesn't know the hole's diameter.

 

Hole size is .2015 (drill size for a 1/4-20 tap)Hole size is .2015 (drill size for a 1/4-20 tap)Alas ".201" is not present in the dump file.Alas ".201" is not present in the dump file.

0 Likes
Message 7 of 8

Steinwerks
Mentor
Mentor

Now you've got me curious... I'll have to dig a little bit, might have some time tomorrow to do so.

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
Message 8 of 8

Anonymous
Not applicable

Hi there

 

Does the Centre drill function to drill to chamfer width or diameter still not working?

I cant get it to do a 1 mm chamfer  with a Centre drill.

0 Likes