<?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: Set the item location in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537871#M45327</link>
    <description>&lt;P&gt;Those last three numbers are saying what point on the object to use as the object's position. In this case the center of the object on the bottom (50% of the X size, 50% of the Y size, and 0% of the Z). &lt;/P&gt;&lt;P&gt;See the documentation for the setLocation command:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setLocation"&gt;https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setLocation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This page about position reference might help explain it too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/19.1/Using3DObjects/WorkingWith3DObjects/MovingResizingRotating/#reference"&gt;https://docs.flexsim.com/en/19.1/Using3DObjects/WorkingWith3DObjects/MovingResizingRotating/#reference&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 16:19:23 GMT</pubDate>
    <dc:creator>Matthew_Gillespie</dc:creator>
    <dc:date>2019-05-22T16:19:23Z</dc:date>
    <item>
      <title>Set the item location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537868#M45324</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello everyone. I want to set the location of 2 items within a single queue. Based on Global Table (use location X, Y, Z in the location setting).&lt;/P&gt;
&lt;P&gt;Condition&lt;/P&gt;
&lt;P&gt;Item 1 uses the Global Table (Type Table1) in the location settings.&lt;/P&gt;
&lt;P&gt;Item 2 uses the Global Table (Type2 Table) in the location settings.&lt;/P&gt;
&lt;P&gt;In which the model I attached. I have set the location of item 1 in queue 1 - queue 4 based on Global Table (Type Table1) and I want to add the location setting of item 2 to the queue 1,2,3,4.&lt;/P&gt;
&lt;P&gt;Can this logic actually be created?&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;&lt;A id="19319" href="https://answers.flexsim.com/storage/attachments/19319-set-location.fsm"&gt;set-location.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 18:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537868#M45324</guid>
      <dc:creator>joey_s</dc:creator>
      <dc:date>2019-05-21T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set the item location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537869#M45325</link>
      <description>&lt;P&gt;I changed the SetLocation pickoption on the queues to be a code snippet using the following code:&lt;/P&gt;&lt;PRE&gt;string tableName = "Type Table" + string.fromNum(item.Type);
Table table = Table(tableName);
int row = current.count;
item.setLocation(table[row][2], table[row][3], table[row][4], 0.5, 0.5, 0);
&lt;/PRE&gt;&lt;P&gt;It uses the item's type to make a string of the table's name. See the attached model.&lt;/P&gt;&lt;P&gt;&lt;A id="19324" href="https://answers.flexsim.com/storage/attachments/19324-setlocation.fsm"&gt;setlocation.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 21:30:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537869#M45325</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-05-21T21:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set the item location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537870#M45326</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I must thank you very much for your help in solving this problem.&lt;/P&gt;
&lt;P&gt;But please describe the code you created What is this part?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19351-11.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499205iDD9DF41B1797860A/image-size/large?v=v2&amp;amp;px=999" role="button" title="19351-11.png" alt="19351-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:14:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537870#M45326</guid>
      <dc:creator>joey_s</dc:creator>
      <dc:date>2019-05-22T14:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set the item location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537871#M45327</link>
      <description>&lt;P&gt;Those last three numbers are saying what point on the object to use as the object's position. In this case the center of the object on the bottom (50% of the X size, 50% of the Y size, and 0% of the Z). &lt;/P&gt;&lt;P&gt;See the documentation for the setLocation command:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setLocation"&gt;https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setLocation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This page about position reference might help explain it too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/19.1/Using3DObjects/WorkingWith3DObjects/MovingResizingRotating/#reference"&gt;https://docs.flexsim.com/en/19.1/Using3DObjects/WorkingWith3DObjects/MovingResizingRotating/#reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 16:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537871#M45327</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-05-22T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set the item location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537872#M45328</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 22:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-the-item-location/m-p/13537872#M45328</guid>
      <dc:creator>joey_s</dc:creator>
      <dc:date>2019-05-22T22:37:12Z</dc:date>
    </item>
  </channel>
</rss>

