Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug in querying TimelineObject.entity for move feature

1 REPLY 1
Reply
Message 1 of 2
JeromeBriot
282 Views, 1 Reply

Bug in querying TimelineObject.entity for move feature

Hello,

consider a simple design wih one box primitive and one move feature (see attached file).

Fusion 360 crash when trying to query objects from the timeline:

>>> app = adsk.core.Application.get()
>>> product = app.activeProduct
>>> tl = product.timeline
>>> print(tl.count)
2
>>> t = tl.item(0)
>>> print(t.name)
BoxPrimitive1
>>> print(t.index)
0
>>> print(t.entity.objectType)
adsk::fusion::BoxFeature
>>> t = tl.item(1)
>>> print(t.name)
Move1
>>> print(t.index)
1
>>> print(t.entity.objectType)
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 29960, in _get_entity
    return _fusion.TimelineObject__get_entity(self)
RuntimeError: 2 : InternalValidationError : res
1 REPLY 1
Message 2 of 2
marshaltu
in reply to: JeromeBriot

Hello,

 

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

 

Thanks,

Marshal



Marshal Tu
Fusion 360 Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums