Message 1 of 4
Bug Report (minor): dimensions between 2 sketches via API crashes fusion360
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
See also: CER_219887783
I made you a sample so you can reproduce this crash yourself.
Open "text commands", click the Py button:-
Then Paste the following, one-line-at-a-time, into the box.
sketch1 = adsk.core.Application.get().activeProduct.rootComponent.sketches.add( adsk.core.Application.get().activeProduct.rootComponent.xYConstructionPlane)
point3d1 = adsk.core.Point3D.create(1.0, 1.0, 0)
point1 = sketch1.sketchPoints.add(point3d1)
sketch2 = adsk.core.Application.get().activeProduct.rootComponent.sketches.add( adsk.core.Application.get().activeProduct.rootComponent.xYConstructionPlane)
point3d2 = adsk.core.Point3D.create(2.0, 2.0, 0)
point2 = sketch2.sketchPoints.add(point3d2)
r = sketch2.sketchDimensions.addDistanceDimension(point1, point2, 1, point3d2) # Save your work first - this crashes Fusion 360.
Should be an easy one to fix 🙂
Good luck.