InternalValidationError when using JointOrigins

InternalValidationError when using JointOrigins

Anonymous
Not applicable
622 Views
3 Replies
Message 1 of 4

InternalValidationError when using JointOrigins

Anonymous
Not applicable

I have a model with two Joint Origins. The body is extruded form a sketch and one origin is in the centre of the face and the other the centre of the fillet:

 

Screen Shot 2018-08-16 at 13.29.36.png

When I try to determine the position of the joint origins using the following code, the first works but the second throws an internal validation exception:

 

import adsk.core, adsk.fusion, adsk.cam, traceback

def run(context):
    try:
        app = adsk.core.Application.get()
        product = app.activeProduct
        design = adsk.fusion.Design.cast(product)
        rootComp = design.rootComponent
        for jointOrigin in rootComp.allJointOrigins:
            print(jointOrigin.name)
            try:
                print(jointOrigin.geometry.origin.asArray())
            except Exception as e:
                print(e)
    except:
        print('Failed:\n{}'.format(traceback.format_exc()))

and the output:

Joint Origin1
(0.0, -2.5, 6.0)
Joint Origin2
2 : InternalValidationError : jointGeom->entityTwo_

 

0 Likes
623 Views
3 Replies
Replies (3)
Message 2 of 4

goyals
Autodesk
Autodesk

@Anonymous Please share the design if possible so I can look at that.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 3 of 4

Anonymous
Not applicable

Attached

0 Likes
Message 4 of 4

goyals
Autodesk
Autodesk

Thank you for sharing the design. We fixed this as well along with the other issue you reported. It will make to Fusion production in month of October.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes