Change hole type VB.NET

Change hole type VB.NET

GeorgK
Advisor Advisor
920 Views
10 Replies
Message 1 of 11

Change hole type VB.NET

GeorgK
Advisor
Advisor

Hello together,

 

how could I change the hole types? Is there any code sample?

 

Bohrungen_Inventor.jpg

 

 

Thank you very much

 

Georg

0 Likes
921 Views
10 Replies
Replies (10)
Message 2 of 11

sajith_subramanian
Autodesk Support
Autodesk Support

Hi GeorgK,

 

There is a similar discussion on the forum.

 

https://forums.autodesk.com/t5/inventor-customization/change-hole-type-with-ilogic/td-p/5633259?nobo...

 

 

Let me know if it helps.

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 3 of 11

GeorgK
Advisor
Advisor

Hello Sajith,

 

that does not solve the problem to change directly the type of the hole.

 

Georg

0 Likes
Message 4 of 11

sajith_subramanian
Autodesk Support
Autodesk Support

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


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 5 of 11

GeorgK
Advisor
Advisor

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

0 Likes
Message 6 of 11

sajith_subramanian
Autodesk Support
Autodesk Support

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.

 https://forums.autodesk.com/t5/inventor-ideas/inventor-api-support-clearance-hole-type-of-hole-featu...

 

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 7 of 11

GeorgK
Advisor
Advisor

Hello Sajith,

 

is it possible to store the hole position and settings, delete the hole and replace it with another type?

 

Georg

0 Likes
Message 8 of 11

sajith_subramanian
Autodesk Support
Autodesk Support

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


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 9 of 11

GeorgK
Advisor
Advisor

Hello Sajith,

 

yes thats true. But the code does not work.

 

Georg

0 Likes
Message 10 of 11

NachoShaw
Advisor
Advisor

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 automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Message 11 of 11

GeorgK
Advisor
Advisor

Hello Nacho,

 

is it possible to get the tool? How do you share it?

 

Thank you

 

Georg

0 Likes