<?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: How can I insert 3D Object to the 3D view using FlexScript? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497515#M13380</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello, When I try to create boxes in this fashion: &lt;/P&gt;&lt;P&gt;createinstance(library().find("?Box"), model());&lt;/P&gt;&lt;P&gt;or with this:&lt;/P&gt;&lt;P&gt;createinstance(library().find("Tools/FlowItemBin/Box"), model());&lt;/P&gt;&lt;P&gt;I get a variable/codenode error.  But if I put ?Queue or other objects instead of a flowitem all works fine. Is that normal?&lt;/P&gt;&lt;P&gt;It works if I do it with the ProcessFlow activity "Create Object" but I'd need to do it in code for various reasons.&lt;/P&gt;&lt;P&gt;You can see the problem in the attached 1-line model.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/34364-1linemodel.fsm" target="_blank"&gt;1linemodel.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Nov 2020 01:40:08 GMT</pubDate>
    <dc:creator>patrickABAWF</dc:creator>
    <dc:date>2020-11-19T01:40:08Z</dc:date>
    <item>
      <title>How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497510#M13375</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.0.9 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello, I would like to insert 3D object such as queue , processors, etc. from the library to the 3D view by FlexScript. How can I do that? I can't seem to find commands such as create or load in the FlexScript reference.&lt;/P&gt;&lt;P&gt;The purpose I want to do this is to automate the insert of the 3D object if the customer has the list of equipment in Excel or csv.&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:36:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497510#M13375</guid>
      <dc:creator>sakamoto_ryosuke</dc:creator>
      <dc:date>2020-07-01T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497511#M13376</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.1/Reference/CodingInFlexSim/CommandReference/CommandsIndex.html" target="_blank"&gt;Command Reference alphabetic index&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.1/Reference/CodingInFlexSim/CommandReference/CommandsIndex.html" target="_blank"&gt;&lt;/A&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.1/Reference/CodingInFlexSim/CommandReference/Commands.html#createinstance" target="_blank"&gt;createinstance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="http://contextdragconnection" target="_blank"&gt;contextdragconnection&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497511#M13376</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-01T07:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497512#M13377</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use &lt;EM&gt;createinstance&lt;/EM&gt; to instantiate library objects, and&lt;EM&gt; createcopy&lt;/EM&gt; if you want to create copies of an object you have already preconfigured.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.1/Reference/CodingInFlexSim/CommandReference/CommandGroups.html#createinstance" target="_blank"&gt;createinstance documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.1/Reference/CodingInFlexSim/CommandReference/CommandGroups.html#createcopy" target="_blank"&gt;createcopy documentation&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:49:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497512#M13377</guid>
      <dc:creator>allister_wilson</dc:creator>
      <dc:date>2020-07-01T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497513#M13378</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; Thank you! Also thank you for the dragconnection. I also needed that.&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:06:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497513#M13378</guid>
      <dc:creator>sakamoto_ryosuke</dc:creator>
      <dc:date>2020-07-01T08:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497514#M13379</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/237/allister.w.html" nodeid="237"&gt;@Allister Wilson&lt;/A&gt; Thank you for your reply! I also wanted to give best answer to you but Jörg replied just one minute earlier than you did. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497514#M13379</guid>
      <dc:creator>sakamoto_ryosuke</dc:creator>
      <dc:date>2020-07-01T08:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497515#M13380</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello, When I try to create boxes in this fashion: &lt;/P&gt;&lt;P&gt;createinstance(library().find("?Box"), model());&lt;/P&gt;&lt;P&gt;or with this:&lt;/P&gt;&lt;P&gt;createinstance(library().find("Tools/FlowItemBin/Box"), model());&lt;/P&gt;&lt;P&gt;I get a variable/codenode error.  But if I put ?Queue or other objects instead of a flowitem all works fine. Is that normal?&lt;/P&gt;&lt;P&gt;It works if I do it with the ProcessFlow activity "Create Object" but I'd need to do it in code for various reasons.&lt;/P&gt;&lt;P&gt;You can see the problem in the attached 1-line model.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/34364-1linemodel.fsm" target="_blank"&gt;1linemodel.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Nov 2020 01:40:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497515#M13380</guid>
      <dc:creator>patrickABAWF</dc:creator>
      <dc:date>2020-11-19T01:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497516#M13381</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/240/patrick.c.html" nodeid="240"&gt;@Patrick Cloutier&lt;/A&gt;, you find Flow Items never in the library! They are in the Flow Item Bin under the &lt;STRONG&gt;Model&lt;/STRONG&gt; treenode in &lt;EM&gt;Tools&lt;/EM&gt;. The create object activity involves a field where you can select directly the Flow Item and you don’t need to set a reference as a pointer.&lt;/P&gt;&lt;P&gt;The reference should be&lt;/P&gt;&lt;PRE&gt;Model.find("Tools/FlowItemBin/Box/Box")&lt;/PRE&gt;&lt;P&gt;Maybe you can use the sampler tool in the model tree to get the right reference to the object node of a flow item.&lt;/P&gt;&lt;P&gt;If you need a reference directly in Main then it is:&lt;/P&gt;&lt;PRE&gt;MAIN:/project/exec/globals/FlowItemBin&lt;/PRE&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/DeveloperAdvancedUser/ModuleSDK/Reference/Miscellaneous/TreeOrganization/" target="_blank"&gt;Tree Organization&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Nov 2020 07:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497516#M13381</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-11-19T07:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497517#M13382</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When I use the sampler either in the Toolbox or the Tree I get this:&lt;/P&gt;&lt;PRE&gt;Model.find("Tools/FlowItemBin/Box")&lt;/PRE&gt;&lt;P&gt;without the 2nd /Box&lt;/P&gt;&lt;P&gt;and it creates an invisible box with no dimensions and returns this error:&lt;/P&gt;&lt;PRE&gt;time: 0.000000 exception: int ByteBlock::write(char *source, long unsigned int size, int nullterminate)
ex: write&lt;/PRE&gt;&lt;P&gt;The only way to make it right is to manually add the 2nd /Box and then it works.&lt;/P&gt;&lt;P&gt;Not very user friendly...&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Nov 2020 15:01:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497517#M13382</guid>
      <dc:creator>patrickABAWF</dc:creator>
      <dc:date>2020-11-19T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497518#M13383</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/240/patrick.c.html" nodeid="240"&gt;@Patrick&lt;/A&gt;, if you expand the first box node in the tree, you’ll see that this node is not an object. The icon looks like a directory symbol described as standard in manual chapter &lt;EM&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/GeneralModelSettings/TreeProperties/" target="_blank"&gt;Tree Properties&lt;/A&gt; Section Nodes. &lt;/EM&gt;The next box node deeper in the tree is an object node, which you can expand into sub list of attributes nodes by the &amp;gt; icon left to the node. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Nov 2020 17:11:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497518#M13383</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-11-19T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert 3D Object to the 3D view using FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497519#M13384</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You don't use createinstance() to create flowitems. You use createinstance() to create instances of classes defined in the library.&lt;/P&gt;&lt;P&gt;If you want to make a flowitem, use createcopy().&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:08:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-insert-3d-object-to-the-3d-view-using-flexscript/m-p/13497519#M13384</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-11-19T18:08:36Z</dc:date>
    </item>
  </channel>
</rss>

