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: 

InternalValidationError when using JointOrigins

3 REPLIES 3
Reply
Message 1 of 4
benNAKT6
243 Views, 3 Replies

InternalValidationError when using JointOrigins

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_

 

3 REPLIES 3
Message 2 of 4
goyals
in reply to: benNAKT6

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



Shyam Goyal
Sr. Software Dev. Manager
Message 3 of 4
benNAKT6
in reply to: goyals

Attached

Message 4 of 4
goyals
in reply to: benNAKT6

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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report