Hello together,
how could I change the hole types? Is there any code sample?
Thank you very much
Georg
Hi GeorgK,
There is a similar discussion on the forum.
Let me know if it helps.
Regards,
Sajith
Hello Sajith,
that does not solve the problem to change directly the type of the hole.
Georg
Hi GeorgK,
Sorry I missed that the first time.
There may not be a straight forward way to achieve this, since the API may allow to create a tapped / taper tapped hole, but there is no API to create a clearance hole.
Regards,
Sajith
Hello Sajith,
how could I change a simple hole to a tapped / taper tapped hole and back in VB.NET?
Is there a change in the API to create a clearance hole and when?
Georg
Hi GeorgK,
Although you can create regular and tapped holes via the API , there seems to be no straight forward API to switch between them.
For the clearance hole API, there is this post on the Inventor Idea Station.
Regards,
Sajith
Hello Sajith,
is it possible to store the hole position and settings, delete the hole and replace it with another type?
Georg
Hi GeorgK,
It may be possible to read the hole properties and store it externally. May not be the easiest to do it though.
Just for reference, there is an existing thread that has a piece of code that copies hole settings, It should have most of the API's to access the hole settings.
https://forums.autodesk.com/t5/inventor-customization/copy-hole-settings/td-p/6591475
Regards,
Sajith
Hi
Not that it helps right now but, I have a Hole Tool that I am releasing in April which allows you to store your hole settings and set them without needing to go through a set up process everytime. It also allows you to reselect holes that you have previously set as groups and globally change them
Nacho
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hello Nacho,
is it possible to get the tool? How do you share it?
Thank you
Georg