<?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: Accessing AGV allocated Control Points in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584135#M81400</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;treenode agvnode=AGV(Model.find("TaskExecuter1"));
treenode accTraversals=agvnode.subnodes["accumTraversals"];&lt;/PRE&gt;&lt;P&gt;then access each subnode of that as sdt.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Note this is not a supported technique as FlexSim may change the structure of the tree and sdt values,  so I suggest you add usercommands to find the values you want so that you can update in one place if such a change takes place that breaks your commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 22 May 2023 10:57:52 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2023-05-22T10:57:52Z</dc:date>
    <item>
      <title>Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584131#M81396</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi all,&lt;/P&gt;
 &lt;P&gt;I have a problem for which my model breaks because there is an AGV which is standing still in a charging station that allocates different CPs, therefore another one cannot allocate them. I know it looks weird, but I think it is part of the logic I have that makes AGV allocating CPs even though they will not drive to them.&lt;/P&gt;
 &lt;P&gt;So, my question is, is there a way to access from the AGV treenode the CPs that it has allocated so I can delete these allocations? I went through the entire AGV treenode, but I couldn't find anything.&lt;/P&gt;
 &lt;P&gt;Unfortunately I cannot share my model, I hope a picture will be enough.&lt;/P&gt;
 &lt;P&gt;Thanks in advance.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1684682891384.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517168iB2ECC98480D45EEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1684682891384.png" alt="1684682891384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 May 2023 15:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584131#M81396</guid>
      <dc:creator>jacopo_r</dc:creator>
      <dc:date>2023-05-21T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584132#M81397</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;This information is inside de AGVNetwork tree.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1684736997320.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517160iA0BA86DADF44465F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1684736997320.png" alt="1684736997320.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can use several methods from de AGV class to get information about de current cp, destination cp and also all the allocation points the agv has allocated. See the AGV class:&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this case, you can use the property traversalPoints to know the current allocated points as an array:&lt;/P&gt;&lt;P id="isPasted"&gt;Object taskExecuter = Model.find("AGV_Carset_L9_3");&lt;/P&gt;&lt;P&gt;AGV agv = AGV(taskExecuter);&lt;/P&gt;&lt;P&gt;return agv.traversalPoints.length;&lt;/P&gt;&lt;P&gt;Then, you should read the AGV.TraversalPoint class to know how to work with this:&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.TraversalPoint.html"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.TraversalPoint.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 06:41:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584132#M81397</guid>
      <dc:creator>iago_mf</dc:creator>
      <dc:date>2023-05-22T06:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584133#M81398</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi 
 &lt;A rel="user" href="https://answers.flexsim.com/users/29093/iagomf.html" nodeid="29093"&gt;@Iago MF&lt;/A&gt; , 
 &lt;P&gt;thank you for your answer. I'll read and apply what you suggested.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 06:45:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584133#M81398</guid>
      <dc:creator>jacopo_r</dc:creator>
      <dc:date>2023-05-22T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584134#M81399</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi 
 &lt;A rel="user" href="https://answers.flexsim.com/users/29093/iagomf.html" nodeid="29093"&gt;@Iago MF&lt;/A&gt; ,
 &lt;P&gt;I now happen to need to access the node called "accumTraversal" on the AGV node under the AGVNetwork treenode. Unfortunately, there is not a property that I can recall in the script such as the traversalPoints has. Do you know how I could access this from the AGV?&lt;BR /&gt;Thank you&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 09:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584134#M81399</guid>
      <dc:creator>jacopo_r</dc:creator>
      <dc:date>2023-05-22T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584135#M81400</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;treenode agvnode=AGV(Model.find("TaskExecuter1"));
treenode accTraversals=agvnode.subnodes["accumTraversals"];&lt;/PRE&gt;&lt;P&gt;then access each subnode of that as sdt.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Note this is not a supported technique as FlexSim may change the structure of the tree and sdt values,  so I suggest you add usercommands to find the values you want so that you can update in one place if such a change takes place that breaks your commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 10:57:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584135#M81400</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-05-22T10:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AGV allocated Control Points</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584136#M81401</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 11:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/accessing-agv-allocated-control-points/m-p/13584136#M81401</guid>
      <dc:creator>jacopo_r</dc:creator>
      <dc:date>2023-05-22T11:09:50Z</dc:date>
    </item>
  </channel>
</rss>

