<?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 Scripting: Cloning an item in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9396344#M1386</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a Development Project enters a certain state in the workflow, a list of items (Launch Deliverables) should appear in a certain workspace. I know there is a way that I can those LD's via scripting, but the script will be very long and the ADMIN's are the only ones who can edit this script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: Is it possible to create a workspace with the list of (model) Launch Deliverables and a script which 'clones' them into another workspace using a script, when the Development Project enters a certain state?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 12:58:37 GMT</pubDate>
    <dc:creator>Toon.Broothaerts</dc:creator>
    <dc:date>2020-03-24T12:58:37Z</dc:date>
    <item>
      <title>Scripting: Cloning an item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9396344#M1386</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a Development Project enters a certain state in the workflow, a list of items (Launch Deliverables) should appear in a certain workspace. I know there is a way that I can those LD's via scripting, but the script will be very long and the ADMIN's are the only ones who can edit this script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: Is it possible to create a workspace with the list of (model) Launch Deliverables and a script which 'clones' them into another workspace using a script, when the Development Project enters a certain state?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9396344#M1386</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-03-24T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Cloning an item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9396686#M1387</link>
      <description>&lt;P&gt;I'm not 100% sure I understood your question, but you can simulate a full clone, by copying the fields, and perhaps the grid too.&lt;/P&gt;&lt;P&gt;Here is some example that might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scenario here is that one item is creating a copy of itself.&lt;/P&gt;&lt;P&gt;It has 100+ fields, and I copy them in a loop, to the new copy.&lt;/P&gt;&lt;P&gt;I then copy the rows in the grid too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The copy workspace also has fields that point back to the original, I set these line 7.&lt;/P&gt;&lt;P&gt;Lines 8,9,10 I am capturing the time, and the customTransID (location in the workflow that is triggering this cloning)&lt;/P&gt;&lt;P&gt;Line 11 - finally on the item, I set a link (multi-value pick-list) to track the copies that have been created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;BTW before anyone asks, the attachments array is read only. You can do nothing with attachments&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy_fields.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/745001iC1457BC78A56DCAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="copy_fields.jpg" alt="copy_fields.jpg" /&gt;&lt;/span&gt; in javascript, except read their meta data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 14:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9396686#M1387</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2020-03-24T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Cloning an item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9778935#M1388</link>
      <description>&lt;P&gt;This is fantastic! You've just saved me hours of scripting to spawn an item via conventional means!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9778935#M1388</guid>
      <dc:creator>J_Dug</dc:creator>
      <dc:date>2020-10-01T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Cloning an item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9778972#M1389</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:33:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-cloning-an-item/m-p/9778972#M1389</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2020-10-01T14:33:18Z</dc:date>
    </item>
  </channel>
</rss>

