Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change hole type VB.NET

10 REPLIES 10
Reply
Message 1 of 11
GeorgK
577 Views, 10 Replies

Change hole type VB.NET

Hello together,

 

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

 

Bohrungen_Inventor.jpg

 

 

Thank you very much

 

Georg

10 REPLIES 10
Message 2 of 11
sajith_subramanian
in reply to: GeorgK

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
Message 3 of 11
GeorgK
in reply to: sajith_subramanian

Hello Sajith,

 

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

 

Georg

Message 4 of 11
sajith_subramanian
in reply to: GeorgK

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
Message 5 of 11
GeorgK
in reply to: sajith_subramanian

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

Message 6 of 11
sajith_subramanian
in reply to: GeorgK

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
Message 7 of 11
GeorgK
in reply to: sajith_subramanian

Hello Sajith,

 

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

 

Georg

Message 8 of 11
sajith_subramanian
in reply to: GeorgK

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
Message 9 of 11
GeorgK
in reply to: sajith_subramanian

Hello Sajith,

 

yes thats true. But the code does not work.

 

Georg

Message 10 of 11
NachitoMax
in reply to: GeorgK

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)


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.


Message 11 of 11
GeorgK
in reply to: NachitoMax

Hello Nacho,

 

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

 

Thank you

 

Georg

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

Post to forums  

Autodesk Design & Make Report