thomasa88/ParametricText

Text doesn't update when configurations get generated through the API

Opened this issue · 3 comments

Hi Thomas,

First of all, thank you very much for the add in! Your work is much appreciated!

I work with configurations and parametric text is pretty useful in this case. When changing/activating different configurations in the GUI the text updates just fine. However, if I want to generate new configurations through the API the text doesn't update. Even activating the configurations with .activate(), wait for Fusion adsk.doEvents(), as well as refreshing the viewport with app.activeViewport.refresh() didn't help.

When I click through the API generated configurations in the configuration table the text updates fine. But I want to automate exporting each configuration with an individual text on it. And right now the parametric text doesn't update and all exported configurations show the same text.

Do you have an idea on how to fix this issue?

Thank you in advance for your investigation. Let me know if I can help you.

Software

  • OS: Windows
  • Fusion 360 version: 2.0.19440 x86_64
  • ParametricText version: 2.4.0

Hi, I'm having the same issue right now, would be amazing to solve this! Thanks a lot for your work!

Software

  • OS: MacOS
  • Fusion 360 version: 2.0.19440 arm64
  • ParametricText version: 2.4.0

Hi,

Maybe you can try

    app.fireCustomEvent('thomasa88_ParametricText_Ext_Update')
    adsk.doEvents()
    adsk.doEvents()  

from #60 (comment) .

Maybe I should get triggering on Compute All implemented 🤔

(Note: Issue #68 broken out from #56 (comment) )

works for me. Thanks for the support!