Trouble using parameters with Pattern On Path -tool.

Trouble using parameters with Pattern On Path -tool.

kuusela.villeantti
Explorer Explorer
2,136 Views
9 Replies
Message 1 of 10

Trouble using parameters with Pattern On Path -tool.

kuusela.villeantti
Explorer
Explorer

Is this a bug or am I doing something wrong? I'm trying to use a parameter, that is rounded to a whole number, as an input for the Pattern On Path -tool, but it will not accept it.

0 Likes
2,137 Views
9 Replies
Replies (9)
Message 2 of 10

aliobidi
Collaborator
Collaborator

Hi, 

attach your file please 

0 Likes
Message 3 of 10

jhackney1972
Consultant
Consultant

As requested, attach your file.  If you do not know how to attach your Fusion 360 model follow these easy steps. Open the model in Fusion 360, select the File menu, then Export and save as a F3D or F3Z file to your hard drive. Then use the Attachments section, of a forum post, to attach it.

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 4 of 10

jeff_strater
Community Manager
Community Manager

the problem is units.  Quantity expects a "unitless" value, and you are giving it a value whose units are "mm".  You need to define your parameter to be of type "unitless", then it should work.

Screen Shot 2022-07-08 at 1.32.40 PM.png


Jeff Strater
Engineering Director
0 Likes
Message 5 of 10

kuusela.villeantti
Explorer
Explorer
But then the parameter only accepts inputs that are also "unitless", which only pushes the problem "downstream". I need the amount of cuts to be proportional to the length of the part.
0 Likes
Message 6 of 10

g-andresen
Consultant
Consultant

Hi,

If you divide the total length by a set base length, you have a unitless quantity.
With the rounded up or down value you can then determine the real distances ( spacing) between the instances.

 

günther

0 Likes
Message 7 of 10

kuusela.villeantti
Explorer
Explorer
I'm not trying to solve the spacing of the cuts, the spacing is fixed. What I'm trying to solve is how many cuts can fit on the part (minus a set max length with out cuts at the end of a part). Also the length of the part is defined by other parameters, which are in mm.
0 Likes
Message 8 of 10

jeff_strater
Community Manager
Community Manager

what @g-andresen is saying is:  your value is OK, you just have to do some "unit math" to get it into the right units (or in this case, lack of units).  So, instead of "ceil(clw1)", you would have something like "ceil(clw1 / 1 mm)".  This is like you used to do in high school to do "units balancing".  The "/ 1 mm" does not change the value of clw1, it just removes the units from the value.  However, due to a limitation (that I hope gets addressed at some point), you cannot, today, edit the units of a parameter.  So, you will have to delete "clw1_1", and create a new parameter with type "unitless", and use that expression to set its value.  I think that should work.


Jeff Strater
Engineering Director
0 Likes
Message 9 of 10

kuusela.villeantti
Explorer
Explorer

Ok now I'm even more confused. Sometimes the fix works, sometimes not...

0 Likes
Message 10 of 10

kuusela.villeantti
Explorer
Explorer

I did find a workaround for this bug, but editing anything makes it freak out again... 😕
What I had to do, was to first set the parameter as a set value, use it in the operation, then change the value of the parameter to the intended equation.

0 Likes