API function GeneralOptions.ThreadTableQuery.GetAvailableThreadTypes issue

API function GeneralOptions.ThreadTableQuery.GetAvailableThreadTypes issue

guilloryt
Advocate Advocate
560 Views
1 Reply
Message 1 of 2

API function GeneralOptions.ThreadTableQuery.GetAvailableThreadTypes issue

guilloryt
Advocate
Advocate

I am using the API function GeneralOptions.ThreadTableQuery.GetAvailableThreadTypes in a .net app to present a list of threads to the user for selection.

 

My issue is that the function does not return the same set of threads that are available directly in the Inventor hole feature. My first thought there must be an issue with my Thread.xls. But what does not make sense to me is that the Inventor UI is seeing the threads but the function is not? But I am assuming the function is reading the same object that the UI is using to present the list to the user?

 

Should I not be getting all the thread data with the function? Would appreciate any suggestions or direction. 

 

See attached Thread.xls. Several thread types are not returned by the function. For example, in my app with the code below I am not getting the "Straight Pipe Threads (NPSM)" with the function.. but in the Inventor UI with a hole feature selected, the "Straight Pipe Threads (NPSM)" is listed?

 

Snippet

 Public Function GetThreadTypes() As List(Of StringImplements IThreadInformation.GetThreadTypes
        Try
            Dim availableThreadTypes As String() = _oInv.GeneralOptions.ThreadTableQuery.GetAvailableThreadTypes()
 
            Return New List(Of String)(availableThreadTypes)
        Catch ex As Exception
            Throw New Exception("FOP Model Member Thread Information: Unable to get thread type values for " & _ThreadProp.Name & vbLf & ex.Message)
        End Try
    End Function

 

 

 

See below the list of thread types return by the function in my app.

 

(0) "ANSI Unified Screw Threads" String
(1) "Straight Pipe Threads (NPSM)" String
(2) "ANSI Metric M Profile" String
(3) "ACME" String
(4) "MOD ACME" String
(5) "Acme, Stub" String
(6) "Acme, Stub, CIW Mod" String
(7) "ANSI B1.9 Buttress Thread" String
(8) "NPT" String
(9) "NPT for PVC Pipe and Fitting" String
(10) "CIW 4 PITCH-45 DEG" String
(11) "Mod Sq Thd" String
(12) "BPV Thread" String
(13) "Metric Straight Pipe Threads" String
(14) "ISO Metric profile" String
(15) "ISO Metric Trapezoidal Threads" String
(16) "Inch Tapping Threads" String
(17) "Metric Forming Screw Threads" String
(18) "ISO Pipe Threads" String
(19) "ISO Taper External" String
(20) "ISO Taper Internal" String
(21) "JIS Pipe Threads" String
(22) "JIS Taper External" String
(23) "JIS Taper Internal" String
(24) "Din Taper" String
(25) "DIN Pipe Taper External" String
(26) "DIN Pipe Taper Internal" String
(27) "DIN Pipe Threads" String
(28) "BSP Pipe Threads" String
(29) "BSP Taper External" String
(30) "BSP Taper Internal" String
(31) "GB Metric profile" String
(32) "GB Pipe Threads" String
(33) "AFBMA Standard Locknuts" String
(34) "GOST Self-tapping Screw Thread" String

 

Thanks

0 Likes
561 Views
1 Reply
Reply (1)
Message 2 of 2

guilloryt
Advocate
Advocate

Sorry.. please disregard the question...

 

 

The user did not have the correct project file... it is working as expected.

0 Likes