<?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: Replicating a 3D source in Process Flow in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528879#M38041</link>
    <description>&lt;P&gt;This assigns each item a name, but the name is always the first one in the table. Is there a way to assign each name and label to the specified quantity of items in the table?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 17:58:50 GMT</pubDate>
    <dc:creator>robert_hambright</dc:creator>
    <dc:date>2016-10-03T17:58:50Z</dc:date>
    <item>
      <title>Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528877#M38039</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I am not very experienced with process flow and I am having trouble replicating the 3D source in process flow.&lt;/P&gt;
&lt;P&gt; I want the Process Flow source to create the same quantity of objects with the same labels and names as the 3D source. I tried creating a global table and indexing the token to try to name and label each box but it only names the first box and then returns an error.&lt;/P&gt;
&lt;P&gt;How do I replicate the 3D source while still keeping the other process flow logic of deleting the objects in the rack after each scheduled arrival?&lt;/P&gt;
&lt;P&gt;Thanks for the help!&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/2800-example.fsm"&gt;example.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:09:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528877#M38039</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-03T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528878#M38040</link>
      <description>&lt;P&gt;When you have an array on a label and you say:&lt;/P&gt;&lt;PRE&gt;treenode item = getlabel(token, "item")&lt;/PRE&gt;&lt;P&gt;you only get the first item in the array. In order to set the names of all of the items, you'll want to make a for loop:&lt;/P&gt;&lt;PRE&gt;string itemname = gettablestr("MMRP", getlabel(token,"Row"), 2);
treenodearray flowitems = getlabel(token,"item");
for (int i = 1; i &amp;lt;= arraysize(flowitems); i++) {
	setname(flowitems&lt;I&gt;, itemname);
}

&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Oct 2016 17:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528878#M38040</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2016-10-03T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528879#M38041</link>
      <description>&lt;P&gt;This assigns each item a name, but the name is always the first one in the table. Is there a way to assign each name and label to the specified quantity of items in the table?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 17:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528879#M38041</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-03T17:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528880#M38042</link>
      <description>&lt;P&gt;If the label Row is the starting row you would say:&lt;/P&gt;&lt;PRE&gt;int startRow = getlabel(token,"Row");
treenodearray flowitems = getlabel(token,"item");
for (int i = 1; i &amp;lt;= arraysize(flowitems); i++) {
	string itemname = gettablestr("MMRP", startRow + i, 2);
	setname(flowitems&lt;I&gt;, itemname);
}



&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528880#M38042</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2016-10-03T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528881#M38043</link>
      <description>&lt;P&gt;This now names them but skips the first row for item 1. I appreciate the help for getting the names correct, but my question is more geared toward replicating all parts of the source.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:16:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528881#M38043</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-03T18:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528882#M38044</link>
      <description>&lt;P&gt;I've included an example of how I would go about creating a scheduled source of items in Process Flow.  Feel free to take anything you find helpful from this example.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/2807-example.fsm"&gt;example.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:23:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528882#M38044</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2016-10-03T18:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528883#M38045</link>
      <description>&lt;P&gt;Definitely helpful, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:39:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528883#M38045</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-03T18:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528884#M38046</link>
      <description>&lt;A href="https://answers.flexsim.com/storage/attachments/2811-clear-racks-manual-schedule-method.fsm"&gt;clear-racks-manual-schedule-method.fsm&lt;/A&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1043/robert.h.html" nodeid="1043"&gt;@Robert Hambright&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here's an updated version of the model that takes into account your desired table structure.  Because of the way the events for the arrival table appear to be created, I needed a way for all the arrivals with the same arrival time to be created all at once, otherwise it throws off the stuff I had done to clear the rack of the "old" items.&lt;/P&gt;&lt;P&gt;I'm reading your global table with all the arrival data and assigning labels for arrivalTime, Name, itemType, and Quantity.  There is also a label called "row" that tracks what row in the global table I should read from.&lt;/P&gt;&lt;P&gt;The first decision that is being made is whether or not the next shipment to create is has the same arrival time as the previous shipment, if it is I don't want to take anytime waiting for the next arrival, if it's not I do a delay for the time before the next arrival (EG. waiting from the time zero arrivals to the time 1440 arrivals and so on).&lt;/P&gt;&lt;P&gt;Next I check to see if the transporter is busy, just like before.  &lt;/P&gt;&lt;P&gt;Where the items are being created I loop the token back to the assign labels to move to the next row, but notice the "More Rows?" decision that basically says if I have been all the way through the table, set the row to zero and start again; thus making the schedule a repeating schedule.  To make the repeating a little easier, I put an additional row in the table for time 10080 with a zero quantity so that the second lap around row 1 happens at time 10080 as well.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1043/robert.h.html" nodeid="1043"&gt;&lt;/A&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 22:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528884#M38046</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2016-10-03T22:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a 3D source in Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528885#M38047</link>
      <description>&lt;P&gt;Awesome, thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:20:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replicating-a-3d-source-in-process-flow/m-p/13528885#M38047</guid>
      <dc:creator>robert_hambright</dc:creator>
      <dc:date>2016-10-04T13:20:06Z</dc:date>
    </item>
  </channel>
</rss>

