Rectangular Pattern automatically replaces formular

Rectangular Pattern automatically replaces formular

kariem_saleh
Explorer Explorer
449 Views
9 Replies
Message 1 of 10

Rectangular Pattern automatically replaces formular

kariem_saleh
Explorer
Explorer

I'm running into a problem while laying out a sketch pattern with the "Rectangular Pattern" tool. 

 

When entering a formular for the quantity, fusion always replaces that value with a plain integer number after closing the dialogue. The same happens when I use a unitless user parameter for the quantity. 

I have no problems entering a formular for the distance though.

 

Can someone help me out please? Is this a bug or am I missing something here?

 

Thanks!

0 Likes
Accepted solutions (1)
450 Views
9 Replies
Replies (9)
Message 2 of 10

g-andresen
Consultant
Consultant

Hi,

This has to do with the fact that there are only integer quantities.
You can also specify this value in the parameter table with "round" "ceil" or "floor" and then recalculate the distances with the set quantity if necessary.

 

günther

0 Likes
Message 3 of 10

kariem_saleh
Explorer
Explorer

Hi Günther, thanks for the reply.

Unfortunately that doesn't solve it for me. using those functions to turn the value into an integer doesn't help if I do it directly inside the pattern dialogue nor if I do it to specify a parameter for the amount. Here is a screencapture of what happens:
example1.gif

 

The variable "FingerBreite" is a user parameter without a unit. But even if I replace that with a integer number, so that the formular doesn't contain anything that might confuse the field, it still gets replaced with the result every time I close down the dialogue. Here is another screencapture of that:

example2.gif

 

Am I doing something wrong here?

0 Likes
Message 4 of 10

g-andresen
Consultant
Consultant

Hi,

I can't understand from the GIFs what this is about.
Please share the file and tell us which values should be set and which should be calculated.

 

File > export > save as f3d on local drive > attach to post

 

günther

0 Likes
Message 5 of 10

kariem_saleh
Explorer
Explorer

I'm attaching the file.

If you open up the sketch, there are several pattern arrays. Please open the one, that distributes the rectangles along the X axis.

The quantity in here should be determined by a formular: (6 * FingerDichte) / 2 + 1

"FingerDichte" is a unitless user parameter. (I changed it from "FingerAnzahl" in the GIF to "FingerDichte" for clearity)

 

Together with the function that is already in the dictance field, this should distribute recatngles evenly along the side of the large rectangle and adjust the number of the distributed rectangles acordingly.

0 Likes
Message 6 of 10

kariem_saleh
Explorer
Explorer

Ok sorry. This setup would not adjust the number automatically yet. But it should at least react to changes in the parameters. As long as the field doesn't take a formular at all, I would also not be able to adjust it so it does the trick, that I'm describing above.

 

Would be really nice, if you could take a look.

Thank you 🙂

0 Likes
Message 7 of 10

g-andresen
Consultant
Consultant

Hi,

Here is a design of how I would organize the parametrics.

1. In any case, patterns should not be created in sketches, but from features.

To do this, only one profile is created in the sketch and the pattern is generated from its feature (extrusion/cut).

 

2. I prefer to place the primary element in the center. To do this, the number of instances must be odd.

 

 

günther

 

 

 

cleaned version  

0 Likes
Message 8 of 10

kariem_saleh
Explorer
Explorer

Wow, thanks for all your work! This looks great. 

 

I'm rather new to Fusion360, so this is really great to know. I will look at your file tomorrow and see if I better understand it then 🙂

 

Thank you!

Karim

0 Likes
Message 9 of 10

g-andresen
Consultant
Consultant
Accepted solution

Hi,

Here is an easier way (without IF statements) and identical lengths for fingers and gaps.

 

 

günther

0 Likes
Message 10 of 10

kariem_saleh
Explorer
Explorer

Thank you so much for all the time you put into this!

 

I will need to look into this whole thing with a little more time to reproduce it. It looks really neat and like the absolute best way to do this!

 

Thank you 🙂

0 Likes