joint TimelineObject.rollTo(True) errors with Associated feature is invalid

joint TimelineObject.rollTo(True) errors with Associated feature is invalid

kymC6Q8L
Enthusiast Enthusiast
449 Views
1 Reply
Message 1 of 2

joint TimelineObject.rollTo(True) errors with Associated feature is invalid

kymC6Q8L
Enthusiast
Enthusiast

Hello,

 

Im Trying to lookup some joint information via the api.

I cant post my file as it goes against my works NDA.

 

im looping over joints, in my scene so i can export the info out to a urdf file.

i can get the rotation limits of my revolutes no issue, but when i what to find there positions i get the error.

joint.jointMotion.rotationLimits

 

so for each joint im running:

joint.timelineObject.rollTo(True)
joint_dict['parent'] =  joint.occurrenceTwo.name
joint_dict['child'] = joint.occurrenceOne.name
joint_dict['parent_rel_pos'] =joint.geometryOrOriginOne.origin.asArray()
joint_dict['child_rel_pos'] =joint.geometryOrOriginTwo.origin.asArray()
design.timeline.moveToEnd()

 

In this particular file i get the following error:

joint.timelineObject.rollTo(True)  
  File "C:\Users/monke/AppData/Local/Autodesk/webdeploy/production/b788673c90d05b91de61a3242d6fc03e30a0895b/Api/Python/packages\adsk\fusion.py", line 41326, in rollTo
    return _fusion.TimelineObject_rollTo(self, rollBefore)
RuntimeError: 3 : Associated feature is invalid.

 

If i right click the joint in th tree and select find in timeline and then move the timeline manually it works.

in the file the joint works correctly.

The fusion file was created in the last 3 weeks, it has no relative links/ external linked files.

 

how can i debug what is wrong with the joint to get the above error?

 

Cheers
kym

0 Likes
450 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

Is it possible to copy the assembly, delete the other occurrences and replace the geometry with a box or some other simplified version of the geometry, so you can share the file? I don't know if anyone can provide much help without a test case that can reproduce the problem.

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