Control countersunk hole

Control countersunk hole

jostroopers
Collaborator Collaborator
527 Views
3 Replies
Message 1 of 4

Control countersunk hole

jostroopers
Collaborator
Collaborator

I thought I'd make a simple rule to control a countersunk hole.
I have a part with a countersunk hole.

I created two parameters and linked them in the hole function.

With this I want to control the diameter of the countersink and the diameter of the hole.
I loaded this part into an assy.

There I created a rule and created a text parameter with two values.

At each value, the hole parameters have certain values.

I have tried with Select Case and with If Then.

But I am not able to update the values in the hole function and thus adjust the recessed hole.

That's why I did a test with a simple part.
In my original design these holes are in a part that is in a subassembly.
In it I linked the parameters from the subassembly to the main assembly, but that didn't work either.
What am I doing wrong?

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes
Accepted solutions (1)
528 Views
3 Replies
Replies (3)
Message 2 of 4

FINET_Laurent
Advisor
Advisor
Accepted solution

Hi,

 

Might be syntax mistake since you're using text parameters ? Here is my code from assembly (notice the string use) :  

 

Select Case Cases 
	
Case "Case1"
	Parameter("Coutershrink:1", "hole_diameter") = 5
	Parameter("Coutershrink:1", "countershrink") = 7
Case "Case2"
	Parameter("Coutershrink:1", "hole_diameter") = 8
	Parameter("Coutershrink:1", "countershrink") = 10 
	MsgBox("hey")
Case "Case3"
	Parameter("Coutershrink:1", "hole_diameter") = 10
	Parameter("Coutershrink:1", "countershrink") = 15
End Select

Here is my exemple linked.


Regards,

 

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

0 Likes
Message 3 of 4

jostroopers
Collaborator
Collaborator

Thanks @FINET_Laurent 

That did the trick.

Now the Case text is green and not orange.

It works now.

jostroopers_0-1625935283185.png

 

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
Message 4 of 4

FINET_Laurent
Advisor
Advisor

Glad I could help ! 🙂

 

Regards,

 

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

0 Likes