Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

[API BUG] Cannot access entity of "Move" feature

thomasa88
Advocate

[API BUG] Cannot access entity of "Move" feature

thomasa88
Advocate
Advocate

When accessing the timeline (design.timeline) it is not possible to get the entity for "Move".

 

Create a Move feature in the GUI and then check the timeline using Python:

timeline[-1].name
'Move1'
timeline[-1].entity
RuntimeError: 2 : InternalValidationError : res

 

The same is true for Align.

1 Like
Reply
496 Views
4 Replies
  • bug
Replies (4)

balunist
Advocate
Advocate

There are several things that you can check, the isValid and isSuppressed.   Also is capture position pending?

0 Likes

BrianEkins
Mentor
Mentor

I also found this same issue the other day.  I believe this is related to some internal changes that were made to the Move feature and the API has not been updated to handle this change.  The problem is that the updated Move feature is seen as new type of feature that the API doesn't support.  Because of that when you try to get the feature from the timeline entity it can't return anything because the API doesn't know what it is.  There is not workaround for you.  It's something Autodesk needs to address.

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

thomasa88
Advocate
Advocate

Minimal sample document: https://a360.co/30KXq6v

design = app.activeProduct
design.timeline[0].name
'BoxPrimitive1'
design.timeline[0].entity
<adsk.fusion.BoxFeature; proxy of <Swig Object of type 'adsk::core::Ptr< adsk::fusion::BoxFeature > *' at 0x000001B301E12A20> >
design.timeline[1].name
'Move1'
design.timeline[1].entity
RuntimeError: 2 : InternalValidationError : res
design.timeline[2].name
'Align1'
design.timeline[2].entity
RuntimeError: 2 : InternalValidationError : res
0 Likes

thomasa88
Advocate
Advocate

Bug also applies to:

  • Insert Derive
  • Sheet metal features: flange, bend, convert to sheet metal, flat pattern
0 Likes