Message 1 of 3
Timeline's entity attribute sometimes generates error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to run some script over the timeline of a Design, but I'm getting error messages when the code access the ENTITY property in some of the items of the timeline.
Here is an example: in the design I have 5 items, in order: #0 canvas, #1 sketch, #2 extrude, #3 copy body, #4 move
For items 0 and 3 error messages are generated with the sentence:
app.activeProduct.timeline.item(0).entity
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users/monchisteria/AppData/Local/Autodesk/webdeploy/production/dc406fd0d566a1ba77afee542432c1e031a68604/Api/Python/packages\adsk\fusion.py", line 38225, in _get_entity
return _fusion.TimelineObject__get_entity(self)
RuntimeError: 2 : InternalValidationError : res
app.activeProduct.timeline.item(3).entity
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users/monchisteria/AppData/Local/Autodesk/webdeploy/production/dc406fd0d566a1ba77afee542432c1e031a68604/Api/Python/packages\adsk\fusion.py", line 38225, in _get_entity
return _fusion.TimelineObject__get_entity(self)
RuntimeError: 3 : feature is not supported
I'd tried with other designs and the problem persists for the same type of items in the timeline.
You can see in the above image the error is not reported for item #4 in the timeline (same happen on items #1 and #2).
I believe it's a bug in the API. Shouldd someone at Autodesk take a look at it?
Regards,
Jorge