<?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 Betreff: Loading specific version of a derived component via API or Text Commands in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139443#M1508</link>
    <description>&lt;P&gt;I looked into this and it seems there is an issue with derived components. The API has never been updated to support derived components and it looks like they're being left out of the referenced components list so there's no way to access them. I think for now, this isn't possible until support for derive is added.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 17:49:59 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2024-11-08T17:49:59Z</dc:date>
    <item>
      <title>Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/12737805#M1505</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for my case I need to load a specific version of a derived component. So far I can refresh the derived components to the newest version via TextCommand:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Force a deep refresh to update all external references
app.executeTextCommand(u'Commands.Start PLM360DeepRefreshDocumentCommand')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also I am able to load a specific file version when I open a single file on its own:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;# Open a specific file version
adsk.core.Application.get().documents.open(file_version)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can not find anything in the API Reference Manual and so far I have not found a good documentation on all available text commands.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for helping me out here or point me in the right direction to get this working.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Apr 2024 08:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/12737805#M1505</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2024-04-27T08:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/12747056#M1506</link>
      <description>&lt;P&gt;Here's some example code that should do it. I found a bug where the call to change the version is erroring even though it appears to be successful. I'll see if a bug can get logged for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui = app.userInterface

        occ: adsk.fusion.Occurrence = ui.selectEntity('Select an occurrence.', 'Occurrences').entity

        if not occ.isReferencedComponent:
            ui.messageBox('The selection component must be an external reference.')
            return
        
        docRef = occ.documentReference
        versionCount = docRef.dataFile.versions.count
        if versionCount == 1:
            ui.messageBox('The referenced file must have more than one version.')
            return

        currentVersion = docRef.dataFile.versionNumber
        if currentVersion == 1:
            # The first version is active so use the second version.
            version = 2
        else:
            # Get the previous version number.
            version = currentVersion - 1

        docRef.version = version
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 May 2024 23:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/12747056#M1506</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2024-05-01T23:01:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13134810#M1507</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your response and the code you provided—it’s been incredibly helpful. After spending some time tinkering, I’ve been able to make some progress, and I noticed that the initial bug has since been resolved.&lt;/P&gt;&lt;P&gt;However, I’m encountering a persistent issue related to accessing documentReference. Specifically:&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;LI-CODE lang="general"&gt;docRef = occ.documentReference&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;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;This works well for inserted components but not for derived components. Although derived components have versions available, attempting to check &lt;/SPAN&gt;documentReference&lt;SPAN&gt; results in an error, as it seems this reference is not available for derived components, even thought those are external components.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The Fusion Support Team suggested that I post here to potentially bring this to the development team’s attention. It would be a huge benefit if there were a way to get and set the version of a derived component via documentReference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights or solutions would be greatly appreciated. Thank you in advance for any guidance or suggestions!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 22:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13134810#M1507</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2024-11-06T22:17:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139443#M1508</link>
      <description>&lt;P&gt;I looked into this and it seems there is an issue with derived components. The API has never been updated to support derived components and it looks like they're being left out of the referenced components list so there's no way to access them. I think for now, this isn't possible until support for derive is added.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139443#M1508</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2024-11-08T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139487#M1509</link>
      <description>&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for looking into that matter.&lt;/P&gt;&lt;P&gt;Yes, isReferencedComponent&amp;nbsp;&lt;SPAN&gt;returns false.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What would you suggest in order to get derived components listet in the referenced components list, since they are referenced but not listed yet? Would you suggest reporting this as a bug, or perhaps submitting a feature request to get derived components included in that list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 18:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139487#M1509</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2024-11-08T18:14:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139647#M1510</link>
      <description>&lt;P&gt;I've talked to the API team about this and it's already in their backlog.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 19:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13139647#M1510</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2024-11-08T19:37:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13428869#M1511</link>
      <description>&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to check in if you have heard anything from the API team. Unfortunately, the last months we did not receive any update about this matter. I've seen there have been some changes to the history placement and GUI interface and was very much hoping for this bug to be fixed as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be very helpful for us to know the status because it's almost been a year since we / you initially reported about this problem and a fix would be very important for us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 11:48:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13428869#M1511</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2025-04-16T11:48:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13622091#M1512</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;have you received any feedback from the dev team? If you could write us a quick update, it would be greatly appreciated. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 15:53:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13622091#M1512</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2025-05-09T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13626480#M1513</link>
      <description>&lt;P&gt;No additional work has been done to support derived components in the API. I don't know when it might be supported.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 17:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13626480#M1513</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-05-12T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Betreff: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13628553#M1514</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;thanks a lot for the update, do you think there is anything we can do to get the developers to expedite the support since it's already in their backlog for so long?&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 17:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13628553#M1514</guid>
      <dc:creator>CL604</dc:creator>
      <dc:date>2025-05-13T17:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific version of a derived component via API or Text Commands</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13793085#M22165</link>
      <description>&lt;P&gt;I checked, and no additional progress has been made on this. They do expect to start looking at the issue soon, though.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 15:12:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/loading-specific-version-of-a-derived-component-via-api-or-text/m-p/13793085#M22165</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-09-02T15:12:01Z</dc:date>
    </item>
  </channel>
</rss>

