API - Simple Drill / Hole Function - (fromPoint3D, toPoint3D, double diameter)

API - Simple Drill / Hole Function - (fromPoint3D, toPoint3D, double diameter)

kevin
Enthusiast Enthusiast
7,828 Views
22 Replies
Message 1 of 23

API - Simple Drill / Hole Function - (fromPoint3D, toPoint3D, double diameter)

kevin
Enthusiast
Enthusiast

There needs to be a simple way to make a hole without 3D faces, sketches, features, planes, vectors, circles etc...

All a hole requires is two points and a diameter.

If I'm wrong and there is a way could someone help me in C++

0 Likes
Accepted solutions (2)
7,829 Views
22 Replies
Replies (22)
Message 21 of 23

BrianEkins
Mentor
Mentor

I don't know of a specific limit, but I'm certain it's not been pushed like this before either.

 

The approach that I described won't be limited in this way and will be much faster.  I changed my test code to create 10,000 holes and on my laptop and it successfully completes in less than 7 minutes.

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

kevin
Enthusiast
Enthusiast

Yes, the problem I'm having with bRep is the CAM portion of it.

Id like is to Turn on X, Mill on XZ Plane and drill height Y.

You can probably guess that from the picture.

 

There are no planes and points. How do I get a tool path in CAM to work w/ bRep part?

0 Likes
Message 23 of 23

BrianEkins
Mentor
Mentor

The standard Drilling toolpath in CAM lets you use either points or cylinders to define the hole geometry.  With the B-Rep approach, you have cylinders.  I haven't used any of the Mill/Turn capabilities of CAM so I'm not sure how you specify the correction rotation of the part to get the hole into the correct position.  This is probably a better question for the CAM forum.  Also, be aware that there isn't very much API support for CAM and nothing that would help you set up the tool paths for this part.

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