Message 1 of 4
InternalValidationError when using JointOrigins

Not applicable
08-16-2018
04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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_