Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My bolts work just as I want them to, this is the 3/4-10. What I would like to do is have a choice of choosing Partial or Full thread but only if that option is available. 2.75" and below is full thread only. 3" and above is partial thread or full thread (thru 5"), above that is all partial thread. I have a parameter THREAD. this is multi value (Full and Partial) I have the choice to pick in my form.
If DESCRIPTION1 = "SOCKET HEAD CAP SCREW 3/4-10" Then BOLT_LENGTH = BOLT_LENGTH HEAD_HEIGHT = .75 HEX_WIDTH = .625 HEAD_DIA = 1.125 BOLT_DIA = .75 HEX_DEPTH = .625 SOLT_HEIGHT = (HEAD_HEIGHT/2) Feature.IsActive("Thread1") = True Feature.ThreadDesignation("Thread1") = "3/4-10 UNC" If DESCRIPTION1 = "SOCKET HEAD CAP SCREW 3/4-10" And BOLT_LENGTH < .75 Then MessageBox.Show("SOCKET HEAD CAP SCREW 3/4-10 length must be 3/4 or greater. Changing to 3/4", "AO Paramter Police") BOLT_LENGTH = .75 Else If DESCRIPTION1 = "SOCKET HEAD CAP SCREW 3/4-10" And BOLT_LENGTH > 20 Then MessageBox.Show("SOCKET HEAD CAP SCREW 3/4-10 length must be 20 or less. Changing to 20", "AO Paramter Police") BOLT_LENGTH = 20 End If THREAD = InputBox("THREAD", "PARTIAL OR FULL", "Default Entry") If Parameter("THREAD") = "PARTIAL" Then THREAD_LENGTH = 2 Else If Parameter("THREAD") = "FULL" Then THREAD_LENGTH = BOLT_LENGTH End If SHCS_DESC = DESCRIPTION1 & " " & "X" & " " & BOLT_LENGTH & " " & "LONG" PART_NUMBER1 = "SHCS.75-10" & "X" & BOLT_LENGTH & "LG" End If
Solved! Go to Solution.