<?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: Making object [ConveyorSystem] with Flexscript in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/making-object-conveyorsystem-with-flexscript/m-p/13765442#M97600</link>
    <description>&lt;P&gt;The 'proper' way would be to use the "create()" method of the Object class.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-create" target="_blank"&gt;https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-create&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object.create("Conveyor::ConveyorSystem")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know why copy() doesn't work and what differences there are between the commands though.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Aug 2025 09:17:11 GMT</pubDate>
    <dc:creator>FelixMoehlmann</dc:creator>
    <dc:date>2025-08-13T09:17:11Z</dc:date>
    <item>
      <title>Making object [ConveyorSystem] with Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/making-object-conveyorsystem-with-flexscript/m-p/13765356#M97597</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to make a ConveyorSystem without dragging a conveyor object into the model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Therefore, I used the following script and it seems to work well. Is it a proper way?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Object&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; conv_system = createcopy(maintree().find("project/library/conveyor/ConveyorSystem"), model);&lt;BR /&gt;conv_system.name = "ConveyorSystem";&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But the following script does not work&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;even though the manual recommends using treenode.copy() instead of createcopy(). &lt;/SPAN&gt;What is &lt;SPAN&gt;the difference?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Object&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; conv_system = maintree().find("project/library/conveyor/ConveyorSystem").copy(model);&lt;BR /&gt;conv_system.name = "ConveyorSystem";&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 08:02:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/making-object-conveyorsystem-with-flexscript/m-p/13765356#M97597</guid>
      <dc:creator>wooram_kim</dc:creator>
      <dc:date>2025-08-13T08:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Making object [ConveyorSystem] with Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/making-object-conveyorsystem-with-flexscript/m-p/13765442#M97600</link>
      <description>&lt;P&gt;The 'proper' way would be to use the "create()" method of the Object class.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-create" target="_blank"&gt;https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-create&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object.create("Conveyor::ConveyorSystem")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know why copy() doesn't work and what differences there are between the commands though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 09:17:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/making-object-conveyorsystem-with-flexscript/m-p/13765442#M97600</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2025-08-13T09:17:11Z</dc:date>
    </item>
  </channel>
</rss>

