Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
meck
523 Views, 3 Replies

Feature.ThreadType

Hi All,

In the thread feature, is there a way to switch from ANSI Unified Screw Threads to ANSI Metric M Profile using iLogic? When I try using the code below it tells me it is read only.

 

If ThdType = "Metric" Then
 Feature.ThreadType("Thread1") = "ANSI Metric M Profile"
Else
 Feature.ThreadType("Thread1") = "ANSI Unified Screw Threads"
End If

 

I've also tried using...

 

If ThdType = "Metric" Then
 Feature.SetThread("Thread1", Thdx, "ANSI Metric M Profile", "6g")
Else
 Feature.SetThread("Thread1", Thdx, "ANSI Unified Screw Threads", "2A")
End If

 

I get an error saying "The thread designation "ANSI Unified Screw Threads" is not valid".

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018