Locknut Threads

Locknut Threads

meck
Collaborator Collaborator
748 Views
5 Replies
Message 1 of 6

Locknut Threads

meck
Collaborator
Collaborator

Can someone please enlighten me as to how to specify the threads for AFBMA Standard Locknuts using iLogic. 

My example: Feature.ThreadDesignation("Thread") = 3.527 says it is not valid.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Accepted solutions (1)
749 Views
5 Replies
Replies (5)
Message 2 of 6

MechMachineMan
Advisor
Advisor
Double check you can even create the thread manually first.

Then just go into your rule creator and capture the state of what you want the thread to change to and use that in your rule.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 6

meck
Collaborator
Collaborator

When you examine the thread feature for the locknut on the specification tab there is a drop down of all the different sizes. 3.527 is on the list. I can set them manually with no issues. It's when I set them with code that I get an error.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 6

Jon.Balgley
Alumni
Alumni

Have you tried putting it in as a string?  It looks like you're entering it as a number.

 

I.e., like this:

 

Feature.ThreadDesignation("Thread") = “3.527


Jon Balgley
0 Likes
Message 5 of 6

meck
Collaborator
Collaborator

Thanks for the suggestion! Unfortunately it didn't work. I'm still getting the error message "The thread designation "3.527" is not valid". I would appreciate more ideas on how to solve this issue.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 6 of 6

meck
Collaborator
Collaborator
Accepted solution

It figures the minute I click send I get the idea to place a message box displaying the feature's designation. On the thread feature tab is Size and Designation. I tried designation before as it is written in on the drop down box. For instance "TAN 19-12". When the message box displayed it said only "TAN 19" the "-12" was missing. So I tried using that value when the locknut changes and it works.

Here's the simple code: Feature.ThreadDesignation("Shaft In Locknut") = "TAN 19"

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes