Sketch Patterns and "IF Statements"

Sketch Patterns and "IF Statements"

TylerJ804
Contributor Contributor
883 Views
2 Replies
Message 1 of 3

Sketch Patterns and "IF Statements"

TylerJ804
Contributor
Contributor

Hi there,

 

I'm trying to workout a work flow in the sketch workspace that would function something like below. I'm sorry if this is confusing, I'm copying a workflow from a parametric CAM program called TPAcad for CNC parts - it's a completely different program from Fushion. 

 

IF Pattern -

IF (Parameter) < 20"

Pattern three equally spaced circles

IF (Parameter) > 20"
Pattern four equally spaced circles

END-IF

 

Basically, I'd like to use sketch dimensions/constraints to vary a pattern command to create more or less holes based on the length of the part. So if the part is 20" or less, it'll put 3" equally spaced holes. If it's greater than 20", it'd put four.

 

Does this make sense? Is there a way to accomplish this in the Sketch workspace??

Thanks!!

0 Likes
884 Views
2 Replies
Replies (2)
Message 2 of 3

jhackney1972
Consultant
Consultant

Fusion 360 does not have any parametric "conditional" statement capabilities at this time in the default application.

John Hackney, Retired
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 3

KristianLaholm
Advocate
Advocate

You can use "Sign" and change the numbers of instances in a pattern.
Sign can only return 0 or 1 depending in if the input is negative or positiv.
In my example if length is below 200mm there will be 3 holes, if length is equal or above 200 there will be 5 holes.

The parameters can be compressed and cleaned up to single line, but did them like this for clarity 🙂
 
iflengthaddholes.png