<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sketch Orientation in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/10105739#M9895</link>
    <description>&lt;P&gt;I made a slight modification to your code to better visualize the sketch coordinate system.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
root = design.rootComponent
sketch = root.sketches.add(root.yZConstructionPlane)

length = 3
lines = sketch.sketchCurves.sketchLines
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
length -= 0.5
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
length -= 0.5
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this, I get the results shown below.&amp;nbsp; Now it's obvious the X is in the -Z direction, Y is in the positive Y direction and the Z is in the positive X direction.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SketchCoordNew.png" style="width: 318px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/884533i538B26DBC22C2D34/image-size/large?v=v2&amp;amp;px=999" role="button" title="SketchCoordNew.png" alt="SketchCoordNew.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You commented that you wanted to flip the Z-axis, which is pointing down, but that's actually the X-axis.&amp;nbsp; The X and Y axes lie on the YZ plane as expected and the Z-axis is normal to the plane.&amp;nbsp; When you create a new sketch, Fusion has an internal algorithm it uses to define the orientation of the sketch on the selected plane.&amp;nbsp; The X and Y axes of the sketch will always lie on the selected plane but their orientation is determined by Fusion.&amp;nbsp; Currently, Fusion does not support any way to modify the sketch coordinate system.&amp;nbsp; Because this capability doesn't exist in Fusion the API can't provide it either.&amp;nbsp; Also, it's not possible to change one of the axes without affecting the others because it needs to follow right-hand coordinate system rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an exception to this and it's when working with a non-parametric sketch.&amp;nbsp; If you have a design that is set to not capture design history or if you've created a sketch within a base feature in a parametric design, you can use the Move feature to move and rotate the sketch any way you want. Unfortunately, there's an incorrect check in the API for the Move feature that doesn't allow you to provide a sketch as the entity you want to move so this isn't currently possible through the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A workaround in a parametric design is to create a new component and add the sketch to it, probably on the X-Y plane of the component.&amp;nbsp; You can now modify the position and orientation of the component any way you want, which will also change the sketch with respect to the root coordinate system.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 17:36:04 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2021-02-23T17:36:04Z</dc:date>
    <item>
      <title>Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9952217#M9892</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite confused here about the Sketch Orientations.&lt;/P&gt;&lt;P&gt;I'm building an AddIn to create Parametric BayonetLocks and have serious Problems creating the Sketches.&lt;/P&gt;&lt;P&gt;The main issue i have is, that the "orientation" of the sketches i create seems, kinda confusing or "random".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take this Code for example where i create a Sketch on the root y/z Construction Plane and add lines that show the x/y/z directions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
root = design.rootComponent
sketch = root.sketches.add(root.yZConstructionPlane)

length = 3
lines = sketch.sketchCurves.sketchLines
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Results in a Sketch that looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8nspD83yCY1c6T3vkBIw6xJg.png" style="width: 377px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/858337i229A5996AADD20E9/image-dimensions/377x397?v=v2" width="377" height="397" role="button" title="8nspD83yCY1c6T3vkBIw6xJg.png" alt="8nspD83yCY1c6T3vkBIw6xJg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Problem is, that i want/need to "flip" the "z" axis. So the Line that currently goes down needs to go up.&lt;/P&gt;&lt;P&gt;But i'm seriously lost on how to achieve this. I've already spent ~4-5h trying to google, read and reread the API Documentation and tried Various ways like creating my own 3Point ConstructionPlane, trying to modify the sketch.xDirection/sketch.yDirection, tried to fiddle around with the sketch.origin/sketch.originPoint.geometry, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nothing i try gives me a sketch that i can work with the "z" direction going up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you ask yourself why i need this, i'm trying to code this AddIn properly parametrically and so i need to work with sketchDimensions, which sadly by Design *can not* be negative, so i can't simply move my sketch contents "up" by using negative dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone here might now a way to get this working, i'd love to build some AddIns, with parametrics build in but i'm kinda stuck on this issue right now...&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 14:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9952217#M9892</guid>
      <dc:creator>apocalip</dc:creator>
      <dc:date>2020-12-20T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9952729#M9893</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr Apocalip,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider to check &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;Preferences&amp;gt;&amp;lt;General&amp;gt;&amp;lt;Default Modeling Orientation&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; in the personal settings of &lt;EM&gt;&lt;STRONG&gt;F360&lt;/STRONG&gt;&lt;/EM&gt; as it establishes &lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;mother of all coordinate systems&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; of your designs. I am not sure if the later is exposed in &lt;EM&gt;&lt;STRONG&gt;API&lt;/STRONG&gt;&lt;/EM&gt;,... just explore this area to find out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 21:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9952729#M9893</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2020-12-20T21:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9953072#M9894</link>
      <description>&lt;P&gt;I think there is no other way but to let it transform.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;        # -- non transform --
        app = adsk.core.Application.get()
        ui = app.userInterface
        design = adsk.fusion.Design.cast(app.activeProduct)
        root = design.rootComponent
        sketch = root.sketches.add(root.yZConstructionPlane)
        sketch.name = 'non transform'

        length = 3
        lines = sketch.sketchCurves.sketchLines
        lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
        lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
        lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))


        # -- transform --
        # init sketch
        skt= root.sketches.add(root.yZConstructionPlane)
        skt.name = 'transform'

        # get Matrix3D
        sktMat = skt.transform.copy()
        mat = adsk.core.Matrix3D.create()
        sktMat.transformBy(mat)
        sktMat.invert()

        # init point3D
        pnt3D = adsk.core.Point3D
        pntX = pnt3D.create(length,0,0)
        pntY = pnt3D.create(0,length,0)
        pntZ = pnt3D.create(0,0,length)

        # exec transform
        pntX.transformBy(sktMat)
        pntY.transformBy(sktMat)
        pntZ.transformBy(sktMat)

        # init skttch lines
        lines = skt.sketchCurves.sketchLines
        lines.addByTwoPoints(skt.originPoint, pntX)
        lines.addByTwoPoints(skt.originPoint, pntY)
        lines.addByTwoPoints(skt.originPoint, pntZ)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this is only valid for RootComponent sketches, and for Occurrence sketches, you will need to do more transforms.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 02:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/9953072#M9894</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-12-21T02:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/10105739#M9895</link>
      <description>&lt;P&gt;I made a slight modification to your code to better visualize the sketch coordinate system.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
root = design.rootComponent
sketch = root.sketches.add(root.yZConstructionPlane)

length = 3
lines = sketch.sketchCurves.sketchLines
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
length -= 0.5
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
length -= 0.5
lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this, I get the results shown below.&amp;nbsp; Now it's obvious the X is in the -Z direction, Y is in the positive Y direction and the Z is in the positive X direction.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SketchCoordNew.png" style="width: 318px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/884533i538B26DBC22C2D34/image-size/large?v=v2&amp;amp;px=999" role="button" title="SketchCoordNew.png" alt="SketchCoordNew.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You commented that you wanted to flip the Z-axis, which is pointing down, but that's actually the X-axis.&amp;nbsp; The X and Y axes lie on the YZ plane as expected and the Z-axis is normal to the plane.&amp;nbsp; When you create a new sketch, Fusion has an internal algorithm it uses to define the orientation of the sketch on the selected plane.&amp;nbsp; The X and Y axes of the sketch will always lie on the selected plane but their orientation is determined by Fusion.&amp;nbsp; Currently, Fusion does not support any way to modify the sketch coordinate system.&amp;nbsp; Because this capability doesn't exist in Fusion the API can't provide it either.&amp;nbsp; Also, it's not possible to change one of the axes without affecting the others because it needs to follow right-hand coordinate system rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an exception to this and it's when working with a non-parametric sketch.&amp;nbsp; If you have a design that is set to not capture design history or if you've created a sketch within a base feature in a parametric design, you can use the Move feature to move and rotate the sketch any way you want. Unfortunately, there's an incorrect check in the API for the Move feature that doesn't allow you to provide a sketch as the entity you want to move so this isn't currently possible through the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A workaround in a parametric design is to create a new component and add the sketch to it, probably on the X-Y plane of the component.&amp;nbsp; You can now modify the position and orientation of the component any way you want, which will also change the sketch with respect to the root coordinate system.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 17:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/10105739#M9895</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-02-23T17:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11398157#M9896</link>
      <description>&lt;P&gt;Appologies, but I missing the logic. And why UI created sketches beahve differently from the API created sketches.&lt;/P&gt;&lt;P&gt;I had to reread this explanation several times before I understood the difference between sketch coordinate and model coordinate system.&lt;/P&gt;&lt;P&gt;I therefor added a bit of extra code to try and understand (see below).&lt;/P&gt;&lt;P&gt;Allow me to add some pictures.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="XY.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1111168iA9245025B2BC7CF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XY.png" alt="XY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;XY Plane is logical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="XZ.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1111167i443B3C3BFEAE2819/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XZ.png" alt="XZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;XZ is not logical.&lt;/P&gt;&lt;P&gt;IMHO, the sketch's +Y should align with the model's +Z.&lt;/P&gt;&lt;P&gt;When editing a UI created sketch, the models X and Z&amp;nbsp; are graphically properly oriented for the view, that is horizontal to the rigth for X and vertical and up for the Z. So you would expect the sketch X and Y to follow that, but no, Y is negative. The other planes do follow a correct orientation.&lt;/P&gt;&lt;P&gt;At least UI and API created orientations are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="YZ.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1111166i01B463717C136D1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YZ.png" alt="YZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;YZ is also not logical and here UI and API created sketches follow different rules.&lt;/P&gt;&lt;P&gt;Sketch +X should aling to model +Y and sketch +Y should follow model +Z .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These differences make it hard to program something thru API as it differs from UI interactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Edit: Forgot the code I used)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Fusion360API Python script

from logging import root
import traceback
import adsk.cam
import adsk.fusion
import adsk.core

def run(context):
    ui = adsk.core.UserInterface.cast(None)
    try:
        app      = adsk.core.Application.get()
        ui       = app.userInterface
        des      = adsk.fusion.Design.cast(app.activeProduct)
        rootComp = des.rootComponent
        sketches = rootComp.sketches

        # Draw on predefined sketches
        predefinedSketches = ['preXY','preYZ','preXZ']

        for predefinedSketch in predefinedSketches:
            # select sketch
            sketch = sketches.itemByName(predefinedSketch)
            # draw lines
            lines = sketch.sketchCurves.sketchLines
            # draw along SKETCH x-axis
            length = 3
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
            # draw along SKETCH y-axis
            length = 5
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
            # draw along SKETCH z-axis
            length = 10
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))

       
        # Create sketch on each origin plane thru API
        planes = [
            rootComp.xYConstructionPlane,
            rootComp.yZConstructionPlane,
            rootComp.xZConstructionPlane
        ]

        plane: adsk.fusion.ConstructionPlane
        for plane in planes:
            # create sketch
            sketch = sketches.add(plane)
            sketch.name = plane.name
            # draw lines
            lines = sketch.sketchCurves.sketchLines
            # draw along SKETCH x-axis
            length = 3
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(length,0,0))
            # draw along SKETCH y-axis
            length = 5
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,length,0))
            # draw along SKETCH z-axis
            length = 10
            lines.addByTwoPoints(adsk.core.Point3D.create(0,0,0), adsk.core.Point3D.create(0,0,length))

        
        
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 17:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11398157#M9896</guid>
      <dc:creator>DokH</dc:creator>
      <dc:date>2022-09-02T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11398240#M9897</link>
      <description>&lt;P&gt;Yea, i absolutely agree with you, this is far from easy to understand or logical.&lt;/P&gt;&lt;P&gt;I put quite some effort to build a plugin to easily create 3D printable bayonet locks, but the Fusion360 API threw me off so many times i completely lost interest in it.&lt;/P&gt;&lt;P&gt;The API often feels like you're trying to guide a monkey that's operating the UI, sometimes it works, sometimes it just throws feces in your face and calls it a day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really Love Fusion360 for so many things, i've been using it almost since the release and i'm a paying custom since ~2 years, but some things about it are just frustrating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a perfect world i'd love the API to be way more like OpenSCAD, i know that the methodology of how they work internally is completely different, but the API Interface is just stupid and way to overly complex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 18:27:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11398240#M9897</guid>
      <dc:creator>apocalip</dc:creator>
      <dc:date>2022-09-02T18:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400405#M9898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3012637"&gt;@apocalip&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why don't you sketch all your parts over &lt;U&gt;&lt;FONT face="courier new,courier"&gt;root.xYConstructionPlane&lt;/FONT&gt;&lt;/U&gt; which is the plane that have all axis in the direction you need them to be?&amp;nbsp; If you need to make many sketches, define all of them on the same XY plane, and you won't need to deal with the orientation of the other planes.&amp;nbsp; Doesn't it work for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And regarding the behavior of the API, I believe Fusion360 needs to meet the requirements of a graphical/design tool (which all of us see easier to use with GUI) and also an engineering tool where a lot of linear and matrix algebra defines the different operations under the API functionality.&amp;nbsp; In my case, the use of the API made me reminded and reviewed many concepts I learned in the University, specially from the linear algebra course.&lt;/P&gt;&lt;P&gt;There are a lot of resources out there in internet; I used Khan Academy's in my reviews.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;STRONG&gt;Jorge&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 01:07:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400405#M9898</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2023-08-29T01:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400437#M9899</link>
      <description>&lt;P&gt;Hey Jorge,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no, sadly simply sketching everything on basically a single 2D Plane does not work.&lt;/P&gt;&lt;P&gt;In my case for the Bayonet Lock i created a cylinder and then needed to create a sketch plane to make a circular revolving cut inside that cylinder. And that's where i smashed my head against so many walls and barely comprehensible internal API behavior with those sketch planes that it completely lost me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I absolutely agree, that the GUI should be that way, but the API in it's current form makes a lot of stuff extremely difficult and leaves to much potential in the mud that it makes me quite sad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 21:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400437#M9899</guid>
      <dc:creator>apocalip</dc:creator>
      <dc:date>2022-09-04T21:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400462#M9900</link>
      <description>&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;no, sadly simply sketching everything on basically a single 2D Plane does not work.&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, it isn't just a 2D plane. Any point you use to sketch something on it will have the X, Y&amp;nbsp; and Z components, and you will get a 3D model.&lt;/P&gt;&lt;P&gt;Look at the &lt;FONT face="courier new,courier"&gt;Point3d.create()&lt;/FONT&gt; method , it has the 3 measurements to position it on the 3D space.&lt;/P&gt;&lt;P&gt;I do this way without any complication.&amp;nbsp; Give it a try and check yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;STRONG&gt;Jorge&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 01:07:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400462#M9900</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2023-08-29T01:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400468#M9901</link>
      <description>&lt;P&gt;Right now the Codebase is almost 2 Years old, i can't just get it running again, so i can't exactly confirm/deny your advice.&lt;/P&gt;&lt;P&gt;I thing i tried that back and and failed as well, because, as i mentioned in the initial post at the top, that i had issues, that my points were "posititioned" in the wrong direction and i did not find a single working way to go the other way, because negative values *do not work*.&lt;/P&gt;&lt;P&gt;Maybe i'll manage to get enough interest build up again some day to give this another real try, but with the current state of the API i'm out to be honest, makes me sad as i said, but that's how i look at it currently.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 21:42:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400468#M9901</guid>
      <dc:creator>apocalip</dc:creator>
      <dc:date>2022-09-04T21:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400667#M9902</link>
      <description>&lt;P&gt;I agree that the orientation of sketches created in Fusion (both in the UI and with the API) is not always logical. When working in the UI, it usually doesn't matter because you're not using a coordinate system other than when creating vertical and horizontal constraints. If the API creates a sketch oriented differently than the UI, that is a bug with the API. But even if it isn't the desired behavior, I don't know if it should be fixed because it's likely that programs have been written expecting the current behavior, and fixing it would break them.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 01:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/11400667#M9902</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-09-05T01:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/13646922#M9903</link>
      <description>&lt;P&gt;I'm having a hard time understanding the logic behind Fusion's API sketch orientation. I am able to 2D sketch on the end face of a rectangular body, but when I repeat the same sketch on the opposite end face, the sketch plane orientation is wrong. It's sometimes perpendicular and or flipped horizontally or vertically to the end face, leaving me confused.&amp;nbsp;After reading this thread several times, I'm even more clueless. Are there any articles explaining it in detail? One post here suggested taking a linear algebra course. If that's the case, I guess I need to consider other options.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 17:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/13646922#M9903</guid>
      <dc:creator>markusbarnes</dc:creator>
      <dc:date>2025-05-23T17:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Orientation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/13647193#M9904</link>
      <description>&lt;P&gt;Unfortunately, this is the behavior of Fusion, and is not something specific to the API. If you interactively create sketches on the faces you described, they should be the same as if they were created using the API. When a sketch is created on a plane, Fusion uses an internal algorithm to determine the plane's origin and orientation. If you use the code in message 4 of this thread, it will draw lines showing the coordinate system of the sketch to verify this. Fusion doesn't currently support any way to change the origin or orientation of a sketch. The API has these same limitations.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 21:27:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/sketch-orientation/m-p/13647193#M9904</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-05-23T21:27:24Z</dc:date>
    </item>
  </channel>
</rss>

