Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Thread direction of holes in iLogic

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
fabian.vorpeil
458 Views, 3 Replies

Thread direction of holes in iLogic

Dear all,

I use the following code to get the information if a thread is right or left handed from an outer thread:

 

'Gewinderichtung Gewinde1
If Feature.InventorFeature("Bohrung1").HoleInfo.RightHanded = True Then
Gewinde1_Richtung = "RH"
'Else If Feature.InventorFeature("Bohrung1").HoleInfo.RightHanded = False  Then
'Gewinde1_Richtung = "LH"
'Else
End If

Now I also need to get this information from a hole feature but I was not able to adapt the code correctly. The error I get says that "HoleInfo" for the type "HoleFeature" was not found.

 

Can anyone help?

 

Best regards and have a nice weekend

Fabian Vorpeil

3 REPLIES 3
Message 2 of 4
-niels-
in reply to: fabian.vorpeil

From what i could find in the API help, you might have to look into the "HoleTapInfo" object.

I'm not that good with this stuff so i hope this helps...


Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands

Message 3 of 4
mrattray
in reply to: fabian.vorpeil

Neils is correct. Tapped holes have a HoleTapInfo object, non-tapped holes have a HoleInfo object.

Mike (not Matt) Rattray

Message 4 of 4
fabian.vorpeil
in reply to: mrattray

Thanks a lot guys, here's what I now use to get the thread direction:

 

'Gewinderichtung Gewinde1
If Feature.InventorFeature("Bohrung1").TapInfo.RightHanded = True Then
Gewinde1_Richtung = "RH"
Else If Feature.InventorFeature("Bohrung1").TapInfo.RightHanded = False  Then
Gewinde1_Richtung = "LH"
Else
End If

 Have a nice weekend

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

Post to forums  

Autodesk Design & Make Report