<?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 get AGV allocating certain control point in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600864#M94628</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can get that pretty easily nowadays through the AGV.AllocatableObject class.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.AllocatableObject.html"&gt;https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.AllocatableObject.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/92114-agvpaths-1.fsm" target="_blank"&gt;agvpaths_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 25 Apr 2025 12:22:28 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2025-04-25T12:22:28Z</dc:date>
    <item>
      <title>How can I get AGV allocating certain control point</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600863#M94627</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 25.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;BR /&gt;I´m trying to do some customized AGV path planning and a great advantage for my model would be to be able to find which AGV has the first allocation on a given control point. I'm able to get number of allocations on control point and an allocation as treenode, but I'm struggling with getting to AGV that does the allocation. &lt;/P&gt;
 &lt;P&gt;I would be grateful for any advice.&lt;BR /&gt;Thanks&lt;/P&gt;
 &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/92112-agvpaths.fsm" target="_blank"&gt;AGVpaths.fsm&lt;/A&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1745582349951.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1527336iF11827F2C24A2D2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1745582349951.png" alt="1745582349951.png" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:05:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600863#M94627</guid>
      <dc:creator>TomasHefler</dc:creator>
      <dc:date>2025-04-25T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get AGV allocating certain control point</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600864#M94628</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can get that pretty easily nowadays through the AGV.AllocatableObject class.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.AllocatableObject.html"&gt;https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.AllocatableObject.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/92114-agvpaths-1.fsm" target="_blank"&gt;agvpaths_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:22:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600864#M94628</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-04-25T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get AGV allocating certain control point</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600865#M94629</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for your advice.&lt;BR /&gt;I was able to get the AGV as AllocationPoint and that extract it as an Object via this code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;PRE&gt;AGV.AllocatableObject CP = token.CPs[1];


//check number of allocating agvs is bigger than one
if(Model.find(CP.name+"&amp;gt;variables/allocations").subnodes.length&amp;gt;0){
&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;//find agv having the 1st allocation&lt;/SPAN&gt;
&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;AGV.AllocationPoint allocation = CP.allocations[1];&lt;/SPAN&gt;
&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Object agv = allocation.allocator;&lt;/SPAN&gt;
}&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-get-agv-allocating-certain-control-point/m-p/13600865#M94629</guid>
      <dc:creator>TomasHefler</dc:creator>
      <dc:date>2025-04-25T12:50:36Z</dc:date>
    </item>
  </channel>
</rss>

