Programmatically converting an array of cylinders to holes

Programmatically converting an array of cylinders to holes

john.ballardZ3L45
Contributor Contributor
626 Views
2 Replies
Message 1 of 3

Programmatically converting an array of cylinders to holes

john.ballardZ3L45
Contributor
Contributor

Hi,

 

Objective:  to mill/spot drill a qr code onto a flat surface.

 

I have modified the QRCoder Addin by Patrick Rainsberry @prainsberry to produce cylinders rather than boxes.  I'm having a mental block how to make a solid with holes rather than the array of cylinders.  I'd like to do this programmatically, but instructions how to 'cut' these cylinders into a block would also help me. 

 

I started by trying to import a svg of the qrcode into my model, but where the circles touched, the outlines merged and no longer looked like holes.  I could not find a way to make a CAM program this way.

 

Thanks in advance.

johnballardZ3L45_0-1669930355856.png

 

0 Likes
Accepted solutions (1)
627 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

You can easily cut these from a solid block to create a block with "holes" by using the "Combine" command. To do this, draw a box that overlaps the cylinders, and run the "Combine" command. Choose the box as the target body and then you can use a window select to select all of the cylinders as the tool bodies. Choose the "Cut" operation and whether you want to create a new component and keep the cylinders or not. At the end, you should have a box with holes. I would expect the hole recognizer in Manufacturing to be able to quickly find all of them and then you can use them as input to an operation to machine the holes. No API programming is needed.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

john.ballardZ3L45
Contributor
Contributor

That was easy - thanks!

 

johnballardZ3L45_0-1669938843300.png

 

0 Likes