<?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: Transform scale is confusing in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/transform-scale-is-confusing/m-p/8203378#M15679</link>
    <description>&lt;P&gt;Ok I see - length&amp;nbsp;units are always in cm:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A81B295F-984A-4039-B1CF-B449BEE893D7" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A81B295F-984A-4039-B1CF-B449BEE893D7&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2018 09:08:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-16T09:08:37Z</dc:date>
    <item>
      <title>Transform scale is confusing</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/transform-scale-is-confusing/m-p/8203206#M15678</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model with a transformed component, but the scale seems to be wrong when using the Python API to get the transform. The position of the sphere is at (100, 0, 0), and the box is as (0,0,0):&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="Screen Shot 2018-08-16 at 09.36.04.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/535297i70F375223438776B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-16 at 09.36.04.png" alt="Screen Shot 2018-08-16 at 09.36.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but is reported as (10, 0, 0). Here's the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;try:
    app = adsk.core.Application.get()
    design = adsk.fusion.Design.cast(app.activeProduct)
    for occ in design.rootComponent.allOccurrences:
        trans = occ.transform
        print(occ.name, trans.translation.x, trans.translation.y, trans.translation.z)
except:
    print('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;&lt;P&gt;and the output:&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; Sphere:1 10.0 0.0 0.0&lt;BR /&gt;Block:1 0.0 0.0 0.0&lt;/PRE&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 07:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/transform-scale-is-confusing/m-p/8203206#M15678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transform scale is confusing</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/transform-scale-is-confusing/m-p/8203378#M15679</link>
      <description>&lt;P&gt;Ok I see - length&amp;nbsp;units are always in cm:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A81B295F-984A-4039-B1CF-B449BEE893D7" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A81B295F-984A-4039-B1CF-B449BEE893D7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 09:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/transform-scale-is-confusing/m-p/8203378#M15679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T09:08:37Z</dc:date>
    </item>
  </channel>
</rss>

