Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programmatically converting an array of cylinders to holes

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
john.ballardZ3L45
124 Views, 2 Replies

Programmatically converting an array of cylinders to holes

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

 

Tags (2)
2 REPLIES 2
Message 2 of 3

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
Message 3 of 3

That was easy - thanks!

 

johnballardZ3L45_0-1669938843300.png

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report