thomasa88 / ParametricText

Fusion 360™ add-in for creating Text Parameters in sketches.
MIT License
75 stars 5 forks source link

Parametric Text always seems to recalculate everything #69

Open rwillett1 opened 2 months ago

rwillett1 commented 2 months ago

Describe the bug Fusion 360 sees to recalculate everything a number of times since installing Parametric Text

To Reproduce Installed Parametric Text V2.3.3 from the Fusion store. Installs OK. Running Fusion 360 V2.0.19440 arm 64 [Native] on Mac Min running OS X 14.5 I have 10 Parametric texts on different parts to label them using the same parameters V{VERSION_ID} {_.date:%y/%m/%d %H:%M} {_.version} I have unclicked the Run Compute All automatically at the bottom of the window (I have also clicked it). Now that everytime I change something, Fusion 360 seems to recalculate everything a large number of times.

Expected behavior Unclicking the traffic light should stop the recalculations.

Screenshots If applicable, add screenshots or a video (screencast) to help explain your problem. Take screenshots of any error messages.

Software

Do not forget to "Subscribe" to the issue if you want updates!

thomasa88 commented 1 month ago

Hi, I think the "problem" might be that Fusion does some recalculations automatically as soon as a text is changed, even if they are not forced using compute all.

Do you experience the same thing happening if you disable ParametricText (Shift+S -> Add-ins -> ParametricText -> Stop) and edit the texts manually directly in the sketches?

Is there any difference if you change the parametric text to not use _.date?

Putting the texts as late as possible in the timeline could alleviate the problem.

GitHubGoody commented 2 weeks ago

I'm new to this add on (thank you!), but have noticed this as well. In my case, I have some intentional warnings in my timeline...

image

So, I think that may be exacerbating the issue, but a window similar to this keeps popping up.

ParametricTextErrors

I would like to only see that window if this add on has a warning, not each time Fusion computes all and reminds that there are warnings on my timeline.

thomasa88 commented 1 day ago

Hmm, that is a bit tricky. The error actually happens in the add-in from the add-ins perspective, as it gets the error when it tries to set the sketch text. And the error type given to the add-in is the very generic RuntimeError, with the string 3 : Short Chamfer / 2 ......

The add-in does not know that it is not the cause of the error. In some cases the text inserted might be too long for the size of the object and the user might want to know that the text was not rendered. At other times, I have seen Fusion bugs throwing errors when trying to set the text and then the cause would not be found if the add-in did not display the error.