Bug in querying TimelineObject.healthState and TimelineObject.errorOrWarningMess

Bug in querying TimelineObject.healthState and TimelineObject.errorOrWarningMess

JeromeBriot
Mentor Mentor
835 Views
4 Replies
Message 1 of 5

Bug in querying TimelineObject.healthState and TimelineObject.errorOrWarningMess

JeromeBriot
Mentor
Mentor

Hello,

 

Fusion 360 crashes when query the TimelineObject.healthState and the TimelineObject.errorOrWarningMessage properties of the following objects:

  • Plane
  • Sketch
  • Component Insert
  • Position
  • CopyPaste

According to the documentation, it should return UnknownFeatureHealthState (5) and an empty string.

 

>>> product = app.activeProduct
>>> tl = product.timeline
>>> t = tl.item(0)
>>> print(t.name)
Plane1
>>> print(t.healthState)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:/Users/jerome/AppData/Local/Autodesk/webdeploy/production/41d52fa717ba4840fb5195487a087e5d0282fc3f/Api/Python/packages\adsk\fusion.py", line 30012, in _get_healthState
    return _fusion.TimelineObject__get_healthState(self)
RuntimeError: 1 : Unknown exception
>>> print(t.errorOrWarningMessage)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:/Users/jerome/AppData/Local/Autodesk/webdeploy/production/41d52fa717ba4840fb5195487a087e5d0282fc3f/Api/Python/packages\adsk\fusion.py", line 30019, in _get_errorOrWarningMessage
    return _fusion.TimelineObject__get_errorOrWarningMessage(self)
RuntimeError: 1 : Unknown exception

 

836 Views
4 Replies
Replies (4)
Message 2 of 5

marshaltu
Autodesk
Autodesk

Hello,

 

Thank you for reporting the issue to us. UP-38824 has been logged to track the issue in our internal system.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes
Message 3 of 5

sharas_s
Contributor
Contributor

Is this issue fixed @marshaltu ? I am still getting this error

 

0 Likes
Message 4 of 5

sharas_s
Contributor
Contributor

Maybe @BrianEkins knows anything about this? 

0 Likes
Message 5 of 5

BrianEkins
Mentor
Mentor

This does appear to still be a problem.  I don't know when it might be addressed but I do know the API team has been making a lot of progress on fixing issues and getting new functionality in the API so I'm hopeful it will be soon.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com