Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am a newbie to Fusion 360 but not to programming.
It appears that my sketches are not going in the right direction and y and z coordinates are transposed.
Take this simple example script:
def demo_Lines_addTwoPointRectangle(sketch: adsk.fusion.Sketch):
# Define two points
pointOne = adsk.core.Point3D.create(0, 0, 0)
pointTwo = adsk.core.Point3D.create(5, 15, 0)
# Create the rectangle using the points
rectangles = sketch.sketchCurves.sketchLines
rectangle = rectangles.addTwoPointRectangle(pointOne, pointTwo)
The rectangle is drawn towards the negative z direction even though both points have zero for z dimesion?
The point marked in the diagram is actually (5,0,-15)cm as noted at the bottom right of the UI.
Can someone please point me where my 'fundamental' mistake is coming from?
Solved! Go to Solution.