Modulo bug

Modulo bug

Anonymous
Not applicable
1,441 Views
7 Replies
Message 1 of 8

Modulo bug

Anonymous
Not applicable

Hi,

 

I was digging into the parametric functions that can be used in fusion, just to familiarise myself and see how these could be useful in future designs.

 

But when I tried to use the modulo (%) in a dimension parameter the sketch I was working on locked up, and when I tried to end sketch, fusion froze.  It doesn't fully crash so I cant submit a bug report through the app.

 

I had drawn a rectangle 120mm wide (d1) x 20mm tall (d2) and along the centre line paralel to the long edge I then drew ø10mm circle (d3 and dimensioned it to be '(d1 % 25)/2' from the short edge. I was hoping to do this for two circles along the centre line, to create a part that always has the holes at some multiple of 25mm apart regardless of the overal part lengt. 

 

Looks like a bug?

 

Niels

 

 

0 Likes
1,442 Views
7 Replies
Replies (7)
Message 2 of 8

jeff_strater
Community Manager
Community Manager

I was able to get this to work for me.  One thing I had to do was to change the string to "(d1 / 25in)/2" to get Fusion to accept it.  Adding the units is a little fussy, I know, but it does work for me.

 

Here is a screencast that shows this workflow.  If my workflow is different than yours, that could be the difference.

 

 

Thanks for posting

 

Jeff Strater


Jeff Strater
Engineering Director
0 Likes
Message 3 of 8

HughesTooling
Consultant
Consultant

I found the same problem using the random() function. The workaround is to make a user parameter.

 

Capture.PNG

 

@jeff_strater Just noticed you don't get the correct size in your screencast!

 

Mark Hughes
Owner, Hughes Tooling
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 8

jeff_strater
Community Manager
Community Manager

Thanks for noticing that, @HughesTooling.

 

I think that the problem in my screencast was that I mixed units.  I used "(d1 % 25in)/2", and it should have been:   "(d1 % 25mm)/2".  I think I get the correct results if I use the right units!

 

Jeff

 


Jeff Strater
Engineering Director
0 Likes
Message 5 of 8

HughesTooling
Consultant
Consultant

@jeff_strater I just tried entering (d1 % 25mm)/2 directly into a dimension like your screencast and it seemed OK until I opened the sketch and double clicked the dimension to edit then Fusion locked up and need to be closed from the task bar.

 

Just did another test, all you have to do is enter (d1 % 25mm)/2 then enter, right click and cancel dimensioning then double click the dimension and Fusion locks up.

Seems like the dimension is OK.

Capture.PNG

 

Edit dimension and lockup.

Clipboard01.png

 

 

Thanks

Mark Hughes
Owner, Hughes Tooling
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 6 of 8

Anonymous
Not applicable

Ok, I did a bit more testing and I now understand better where the problem arrises. I can ender % in a dimension,  and get the formula to work (I missed out the units in my initial post, I was going from memory) that's all fine. However if I go back to that dimension and try to edit it, thats when it locks up for me. Fusion becomes unresponsive and if I try to end the skecth the screen goes all skewy. 

 

You can see this in the screencast below. I put in the dimension and am able to end the sketch sucessfully. Then I go back in and try to edit and it locks up. I go a bit frantic there just to illustrate that nothing is responding anymore.

 

I hope that helps you pinpoint better where the issue might lie.

 

For now, @HughesTooling workaround of setting up a user parameter works, thanks for that tip! 

 

https://screencast.autodesk.com/main/details/79c1c6a7-0874-4853-bbcc-750d3dc7ad7a

 

Cheers,

Niels

 

 

0 Likes
Message 7 of 8

jeff_strater
Community Manager
Community Manager

Thanks for the extra investigation @Anonymous & @HughesTooling.  You are absolutely right.  I never went back and tried to edit the dimension later.  And yes, it hangs.  Good catch.  It does seem to be the same problem as you found with the random() function, and the workaround (create a user parameter) does seem to work.  I will make sure that the bug is logged and will get fixed

 

Jeff

 


Jeff Strater
Engineering Director
0 Likes
Message 8 of 8

ShirleyShi
Alumni
Alumni

Hi Ndenekamp,

 

Thanks for your inputing. Yes, this is a defect and have been fixed very recently, should be available in next release.

 

Thanks,

Shirley

Developer for Fusion Electronics

Autodesk, Inc.

0 Likes