Help to Bolt size rule

Help to Bolt size rule

h.hartwig
Participant Participant
338 Views
2 Replies
Message 1 of 3

Help to Bolt size rule

h.hartwig
Participant
Participant

Hey, i hope some of you can help me witch my rule

I have a multiple text parameter eg M6 M8 etc, I try to make a rule, so when I change the text M6 to M8 then should the hole and counterbore sizes change so it fits the selected bolt size

 

I attach the part and hope some of you can help,  it works if I use numbers, but how get it done witch text?

 

 

0 Likes
Accepted solutions (1)
339 Views
2 Replies
Replies (2)
Message 2 of 3

Michael.Navara
Advisor
Advisor
Accepted solution

You need to compere string with string 

If Hole_Set_1_Bolt_Size = "M6" Then

 

'This bolt sizes accords to DIN 974-1 Standard - ISO 4762 Bolts
'Hole Set 1
If Hole_Set_1_Bolt_Size = "M6" Then
	Parameter("Count_Dia_set_1") = 11
	Parameter("Count_Depth_set_1") = 6.4
	Parameter("Hole_Dia_set_1") = 6.6
ElseIf Hole_Set_1_Bolt_Size = "M8" Then
	Parameter("Count_Dia_set_1") = 20
	Parameter("Count_Depth_set_1") = 10
	Parameter("Hole_Dia_set_1") = 15
End If

 

0 Likes
Message 3 of 3

h.hartwig
Participant
Participant

Thanks for the fast answer, 🙂

0 Likes