<?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: handle text orientation ? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359195#M5524</link>
    <description>&lt;P&gt;I had similar similar issue when I had to add text to some sketches.&lt;/P&gt;&lt;P&gt;Text orientation by default depends on line/curve start point and end point. If line starts from left and ends on the right side (X_start &amp;lt; X_end), text will appear above the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did to fix this problem, after adding text, I extract center point of the text (using text bounding box coordinates) and check if it is above the line or not. If not, do vertical and/or horizontal flipping on the text.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 08:12:09 GMT</pubDate>
    <dc:creator>sharas_s</dc:creator>
    <dc:date>2022-08-15T08:12:09Z</dc:date>
    <item>
      <title>handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11358061#M5522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to handle text orientation when I create a new text in a sketch ?&lt;/P&gt;&lt;P&gt;My script draws a sketch curve and uses it as path, but sometimes the text is under the line, sometimes it’s on the line. Sometime the text is left to right, sometime right to left.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I missed something but I can’t find it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 06:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11358061#M5522</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-08-14T06:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11358478#M5523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5507810"&gt;@lionel.courgnaud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say sometimes, it is that you get different results with the exact same script?&lt;/P&gt;&lt;P&gt;Or it is that you get different results when you use different sketch, sketch planes o sketch lines?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share the script you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 17:12:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11358478#M5523</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2022-08-14T17:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359195#M5524</link>
      <description>&lt;P&gt;I had similar similar issue when I had to add text to some sketches.&lt;/P&gt;&lt;P&gt;Text orientation by default depends on line/curve start point and end point. If line starts from left and ends on the right side (X_start &amp;lt; X_end), text will appear above the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did to fix this problem, after adding text, I extract center point of the text (using text bounding box coordinates) and check if it is above the line or not. If not, do vertical and/or horizontal flipping on the text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 08:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359195#M5524</guid>
      <dc:creator>sharas_s</dc:creator>
      <dc:date>2022-08-15T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359290#M5525</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have different results with the same script but different sketches.&lt;/P&gt;&lt;P&gt;I think that all is about sketch orientation, but I can't find the right way to fix it.&lt;/P&gt;&lt;P&gt;I noticed that if I draw the paths (on the same sketch) with different start/end points, the text is always oriented in the same way.&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="Capture d’écran 2022-08-15 à 10.56.50.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1103877i63AD6221805DCF19/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture d’écran 2022-08-15 à 10.56.50.png" alt="Capture d’écran 2022-08-15 à 10.56.50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script creates planes with many different orientations. Based on sketches drew earlier.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;     constructLib.add(design.findAttributes(attacheKey,'c1')[0].parent)
        constructLib.add(design.findAttributes(attacheKey,'c2')[0].parent)
        constructLib.add(design.findAttributes(attacheKey,'c4')[0].parent)
        constructLib.add(design.findAttributes(attacheKey,'c3')[0].parent)
        
        #plan
        planeInput : adsk.fusion.ConstructionPlaneInput = planes.createInput()
        planeInput.setByTwoEdges(constructLib.item(0), constructLib.item(3))
        constructPlan = planes.add(planeInput)

 #scketch
        newSketch : adsk.fusion.Sketch = rootComp.sketches.add(constructPlan)&lt;/LI-CODE&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="the base sketch" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1103887i6D29A029A1A4DC31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2022-08-15 à 11.08.43.png" alt="the base sketch" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the base sketch&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the texts I'm trying to add. &amp;quot;2&amp;quot; is in the right orientation, &amp;quot;9.&amp;quot; is inverted." style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1103888i32844C9E286354B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2022-08-15 à 11.12.20.png" alt="the texts I'm trying to add. &amp;quot;2&amp;quot; is in the right orientation, &amp;quot;9.&amp;quot; is inverted." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the texts I'm trying to add. "2" is in the right orientation, "9." is inverted.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the text scripts (I think it's a bit complicated to read because the project as many dependencies)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        #################### FIRST TEXT

        timelineendId+=1

        StartPt : adsk.fusion.SketchPoint = shared_modules.FarestPoint(newSketch, PtProj1, LineProj0.startSketchPoint, LineProj0.endSketchPoint)                                       
        EndPt : adsk.fusion.SketchPoint = shared_modules.FarestPoint(newSketch, PtProj1, LineProj3.startSketchPoint, LineProj3.endSketchPoint) 

        #text           
        lineCroix1 = shared_modules.LineFrom2SkPoint(newSketch, PtProj1.geometry, StartPt.geometry, True)
        newSketch.geometricConstraints.addMidPoint(newSketch.sketchPoints.add(adsk.core.Point3D.create(0,0,0)),lineCroix1)

        fullname = shared_modules.PieceNum(str(p1))

        # #sketch Text
        texts = newSketch.sketchTexts
        textInput = texts.createInput2(fullname, textSize)
        textInput.setAsAlongPath(lineCroix1, False, adsk.core.HorizontalAlignments.CenterHorizontalAlignment, 0)
        textInput.isHorizontalFlip = False
        textInput.isVerticalFlip = False
        textInput.fontName = 'Arial'
        myText = texts.add(textInput)

        ####################### NEXT TEXT

        #text           
        lineCroix1 = shared_modules.LineFrom2SkPoint(newSketch, PtProj1.geometry, EndPt.geometry, True)
        newSketch.geometricConstraints.addMidPoint(newSketch.sketchPoints.add(adsk.core.Point3D.create(0,0,0)),lineCroix1)

        fullname = shared_modules.PieceNum(str(p2))

        # #sketch Text
        texts = newSketch.sketchTexts
        textInput = texts.createInput2(fullname, textSize)
        textInput.setAsAlongPath(lineCroix1, False, adsk.core.HorizontalAlignments.CenterHorizontalAlignment, 0)
        textInput.isHorizontalFlip = False
        textInput.isVerticalFlip = False
        textInput.fontName = 'Arial'
        myText = texts.add(textInput)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I could predict the different orientations cases, I'll modify the text options, but I don't know how I can do this predictions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 09:19:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359290#M5525</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-08-15T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359298#M5526</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with different paths (made by hand), and the result is not as conclusive as that.&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="same text options, different paths." style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1103889i275B86E26D076565/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2022-08-15 à 10.56.50.png" alt="same text options, different paths." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;same text options, different paths.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 09:23:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11359298#M5526</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-08-15T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11360183#M5527</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text orientation depends on the &lt;STRONG&gt;sketch orientation&lt;/STRONG&gt;, not on the start/end points of the line/path.&lt;/P&gt;&lt;P&gt;You can check the sketch orientation with sketch.xDirection and sketch.yDirection attributes (please note that "x" and "y" directions mean the 2 perpendicular vectors used to build the sketch plane, and not the actual x and y axes of the model)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to explain it with an example. I'm attaching a model with 6 faces.&amp;nbsp; Each face has 4 lines, 2 parallels to the axis and 2 diagonals.&amp;nbsp; Then I use every line to write the "abc" text (all of them with the same definition: centered, above the path, not flips).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I ran this script to get the x and y directions of every sketch:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def getSketchsOrientation():
    for sk in root.sketches:
        app.log(f'{sk.name} {sk.xDirection.asArray()} {sk.yDirection.asArray()}')&lt;/LI-CODE&gt;&lt;P&gt;The result is the following:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;xyInternal (-1.0, 0.0, 0.0) (0.0, -1.0, 0.0)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;xzInternal (-1.0, 0.0, 0.0) (0.0, 0.0, 1.0)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;yzInternal (0.0, 1.0, 0.0) (0.0, 0.0, 1.0)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;xyExternal (1.0, 0.0, 0.0) (0.0, -1.0, 0.0)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;yzExternal (0.0, &lt;FONT color="#FF0000"&gt;-1.0&lt;/FONT&gt;, 0.0) (0.0, 0.0, &lt;FONT color="#FF0000"&gt;1.0&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;xzExternal (1.0, 0.0, 0.0) (0.0, 0.0, 1.0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first coordinate defines the orientation through the "right-hand" side and the second to the "up" orientation.&lt;/P&gt;&lt;P&gt;As an example for yzExternal sketch: the right-hand-side is towards Y- (&lt;FONT face="courier new,courier"&gt;0.0, &lt;FONT color="#FF0000"&gt;-1.0&lt;/FONT&gt;, 0.0&lt;/FONT&gt;) and up is towards Z+ (&lt;FONT face="courier new,courier"&gt;0.0, 0.0, &lt;FONT color="#FF0000"&gt;1.0&lt;/FONT&gt;)&lt;/FONT&gt;. {these are the real X, Y, Z design coordinates}&lt;/P&gt;&lt;P&gt;So, then, you can check the texts orientation in the model for yzExternal sketch:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wtallerdemadera_0-1660581261372.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1104066iB27AFEB0983BF85F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wtallerdemadera_0-1660581261372.png" alt="wtallerdemadera_0-1660581261372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that for the lines which start's and end's point have a difference in real-Y the text is written left to right first (towards Y-) and the up or down following the path; in the case of the vertical lines, whose real-Y coordinate is the same, the text is written vertical towars Z+. (use the help of the viewCube on right-top corner to confirm the orientation; on it the line color axis are drawn from center point towards the positive dimension)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked all texts in the 6 sketch planes in the model, and all texts are consistent in the orientation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5507810"&gt;@lionel.courgnaud&lt;/a&gt;&amp;nbsp;: could you check this with the sketch in you model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help everyone to understand it better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 17:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11360183#M5527</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2022-08-15T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11378771#M5528</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm back &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for all the details. I'm going to try all this.&lt;/P&gt;&lt;P&gt;I'll let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 16:39:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11378771#M5528</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-08-24T16:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11400194#M5529</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to understand, but obviously I haven't succeeded yet.&lt;/P&gt;&lt;P&gt;What does xDirection and yDirection mean in the model/sketch context ?&lt;/P&gt;&lt;P&gt;When I print the x/yDirection of my sketches I have some values as :&lt;/P&gt;&lt;P&gt;sketch name : Sketch Text_009-002&lt;/P&gt;&lt;P&gt;xDirection (0.1453744695660143,-0.9893767045965859,0.0)&lt;/P&gt;&lt;P&gt;yDirection (-0.5404983350256396,-0.07941834327674484,0.8375883694188266)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to use this data in my code. I think I have to track negative values to flip or not my text.&lt;/P&gt;&lt;P&gt;Any clue for me ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 16:20:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11400194#M5529</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-09-04T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11400364#M5530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5507810"&gt;@lionel.courgnaud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every sketch is defined to be located on the XYZ space as a flat plane.&amp;nbsp; Two components are used to identified its placement.&lt;/P&gt;&lt;P&gt;1) Position: which you can, lets say, move +1 on the X axis, -2 on the Y axis and 0 on the Z axis.&amp;nbsp; This component is stored in &lt;U&gt;&lt;FONT face="courier new,courier"&gt;sketck.origen&lt;/FONT&gt;&lt;/U&gt; attribute.&lt;/P&gt;&lt;P&gt;2) Orientation: it means you can rotate the plane in any direction of the X, Y or Z axis or a combination of them.&amp;nbsp; The way to represent this orientation is using two vectors than are NOT parallel to each other.&amp;nbsp; This two vectors are stored in &lt;U&gt;&lt;FONT face="courier new,courier"&gt;sketch.xDirection&lt;/FONT&gt;&lt;/U&gt; and &lt;U&gt;&lt;FONT face="courier new,courier"&gt;sketch.yDirection&lt;/FONT&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;The Z orientation is not included as an sketch attribute, since it is always perpendicular to xDirection and yDirection; you can calculate it with xDirection.crossProduct(yDirection) (&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-GUID-9cd7639c-97a9-4011-83f0-64694efe76e0" target="_blank" rel="noopener"&gt;Vector3D reference&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: this is a little bit about linear algebra, which you can google it.&lt;/P&gt;&lt;P&gt;Hope this is clear now regarding what xDirection and yDirection mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now lets use the information you send to try to clarify better what they mean:&lt;/P&gt;&lt;P&gt;a) Draw a line from (0,0,0) on xDirection (point to (&lt;SPAN&gt;0.1453744695660143,-0.9893767045965859,0.0&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;b) Draw a second line from (0.0.0) on yDirection (point to (&lt;SPAN&gt;-0.5404983350256396,-0.07941834327674484,0.8375883694188266&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;c) Define a plane using the above lines, with the command Construct &amp;gt; Plane Through Two Edges.&amp;nbsp; You will get a plane which is parallel to the plane in your model, like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wtallerdemadera_0-1662320144243.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1111483i0D36A4969BE6BEF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wtallerdemadera_0-1662320144243.png" alt="wtallerdemadera_0-1662320144243.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;d) Then create a sketch on that plane and draw a triangle, and draw a text on each line of it.&lt;/P&gt;&lt;P&gt;You will get something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wtallerdemadera_1-1662320425302.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1111484i9AF1779B6509FB5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wtallerdemadera_1-1662320425302.png" alt="wtallerdemadera_1-1662320425302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since line a) if pointing meanly towards -Y and than line b) is pointing meanly towards +Z you get the texts orientations as shown in the above image.&lt;/P&gt;&lt;P&gt;That "main" magnitude (yellow highlighted) of each vector (including its sign) defines the text direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until here, I tried to explain how the text orientation is defined by Fusion360.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To apply this to your diagram, it will depends where you look from to your model in order to read the text in the correct orientation.&amp;nbsp; If you look from any place located in the +Z direction you will read it correctly.&amp;nbsp; Otherwise it will be flipped vertical and/or horizontal, and then you need to flip it in your sketch to get it in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is quite hard to explain this way, but I hope this could help a little bit.&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:10:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11400364#M5530</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2023-08-29T01:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: handle text orientation ?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11403648#M5531</link>
      <description>&lt;P&gt;wow ! thanks for your time.&lt;/P&gt;&lt;P&gt;I'll check all this asap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:16:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/handle-text-orientation/m-p/11403648#M5531</guid>
      <dc:creator>lionel.courgnaud</dc:creator>
      <dc:date>2022-09-06T13:16:57Z</dc:date>
    </item>
  </channel>
</rss>

