How is "Thread Designation" listed within iLogic

How is "Thread Designation" listed within iLogic

chris
Advisor Advisor
652 Views
1 Reply
Message 1 of 2

How is "Thread Designation" listed within iLogic

chris
Advisor
Advisor

I am trying to create a simple iLogic  part that will change thread sizes based on a couple options... I have used the (Feature: SetThreadAll), which then asks for the following:

 

featurename

thread type

thread designation

thread class

 

for some reason, it keeps giving me an error when I choose thread size in the form, it's telling me that the thread designation is not valid....?

 

I'm using the same format from the IV Excel thread sheet: examples

 

1/4-20 UNC

1/2-13 UNC

3/4-10 UNC

1-8 UNC

 

what is wrong about how that is written?Thread1.PNGThread2.PNG

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

Sergio.D.Suárez
Mentor
Mentor

Hi, as the thread class and type are kept constant, I think this code would serve you. I tried it replicating its model and it worked for me.

 

If Shaft_Size = "1/4" Then Parameter("d28") = 0.25
If Shaft_Size = "1/2" Then Parameter("d28") = 0.5
If Shaft_Size = "3/4" Then Parameter("d28") = 0.75
If Shaft_Size = "1"   Then Parameter("d28") = 1

If Treaded = True Then 
	Feature.IsActive("Thread1")=True
	Feature.IsActive("Thread2") = True
Else
	Feature.IsActive("Thread1")=False
	Feature.IsActive("Thread2") = False
End If

iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()

If Shaft_Size = "1/4" Then
	Feature.ThreadDesignation("Thread1") = "1/4-20 UNC"
	Feature.ThreadDesignation("Thread2") = "1/4-20 UNC"
End If

If Shaft_Size = "1/2" Then
	Feature.ThreadDesignation("Thread1") = "1/2-13 UNC"
	Feature.ThreadDesignation("Thread2") = "1/2-13 UNC"
End If

If Shaft_Size = "3/4" Then
	Feature.ThreadDesignation("Thread1") = "3/4-10 UNC"
	Feature.ThreadDesignation("Thread2") = "3/4-10 UNC"
End If

If Shaft_Size = "1" Then
	Feature.ThreadDesignation("Thread1") = "1-8 UNC"
	Feature.ThreadDesignation("Thread2") = "1-8 UNC"
End If

 I hope the code will be useful.


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes