<?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 AGV Network Customization Delegate setSpeedProfile in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601899#M95421</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;How can I identify the travelPath being calculated in the setSpeedProfile code? The way I was using is the following loop, but if it has to pass through the same path twice, it doesn't work. I would have to add some other condition. Is there any way to directly obtain a reference to the travel path?&lt;/P&gt;&lt;P id="isPasted"&gt;AGV.TravelPathSection section;&lt;/P&gt;&lt;P&gt;int i;&lt;/P&gt;&lt;P&gt;for(i = 1; i &amp;lt;= agv.travelPath.length; i++)&lt;/P&gt;&lt;P&gt;{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;if(agv.travelPath&lt;I&gt;.path == path)&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;{&lt;!-- --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;        &lt;/SPAN&gt;section = agv.travelPath&lt;I&gt;;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;        &lt;/SPAN&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Aug 2023 07:47:29 GMT</pubDate>
    <dc:creator>iago_mf</dc:creator>
    <dc:date>2023-08-02T07:47:29Z</dc:date>
    <item>
      <title>AGV Network Customization Delegate setSpeedProfile</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601899#M95421</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;How can I identify the travelPath being calculated in the setSpeedProfile code? The way I was using is the following loop, but if it has to pass through the same path twice, it doesn't work. I would have to add some other condition. Is there any way to directly obtain a reference to the travel path?&lt;/P&gt;&lt;P id="isPasted"&gt;AGV.TravelPathSection section;&lt;/P&gt;&lt;P&gt;int i;&lt;/P&gt;&lt;P&gt;for(i = 1; i &amp;lt;= agv.travelPath.length; i++)&lt;/P&gt;&lt;P&gt;{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;if(agv.travelPath&lt;I&gt;.path == path)&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;{&lt;!-- --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;        &lt;/SPAN&gt;section = agv.travelPath&lt;I&gt;;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;        &lt;/SPAN&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 07:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601899#M95421</guid>
      <dc:creator>iago_mf</dc:creator>
      <dc:date>2023-08-02T07:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: AGV Network Customization Delegate setSpeedProfile</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601900#M95422</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The travel path is actually passed in as a parameter. The header that is shown in the &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/Tools/AGVNetworkTool/AGVNetwork/AGVNetwork.html#customizationDelegate" target="_blank"&gt;documentation&lt;/A&gt; seems to be an accidental duplicate of the &lt;EM&gt;getPathTravelWeight&lt;/EM&gt; header.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690963902014.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518784iE2DB7964D0BE8C81/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690963902014.png" alt="1690963902014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please take a look at this &lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@Jordan Johnson&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;By checking what values are passed in by assigning them to Variant variables, the correct header should look like below (as far as I can tell).&lt;/P&gt;&lt;PRE&gt;AGV agv = param(1);   // the travelling AGV&lt;BR /&gt;Object path = param(2);   // The path the travel section is on
treenode travelPath = param(3);   // The current travel section
treenode agvTyp = param(4);   // The type of the travelling AGV&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690963791787.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518785iA2EAABDDD4CC2ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690963791787.png" alt="1690963791787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 08:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601900#M95422</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-08-02T08:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGV Network Customization Delegate setSpeedProfile</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601901#M95423</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I hadn't realized that the header was incorrect.&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;  !&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 08:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-network-customization-delegate-setspeedprofile/m-p/13601901#M95423</guid>
      <dc:creator>iago_mf</dc:creator>
      <dc:date>2023-08-02T08:54:00Z</dc:date>
    </item>
  </channel>
</rss>

