<?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: distancetotravel is not considering the path way direction. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582757#M80304</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Distancetotravel needs as first parameter a traveler not an object. If you use cpdistance you don't have this problem. See the attached example: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/68052-231-cpdistance.fsm" target="_blank"&gt;23.1. CPDistance.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope I have been helpful.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 15 May 2023 09:46:03 GMT</pubDate>
    <dc:creator>jose_antonio_mad</dc:creator>
    <dc:date>2023-05-15T09:46:03Z</dc:date>
    <item>
      <title>distancetotravel is not considering the path way direction.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582754#M80301</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I need the distance between two control points going through the correct paths (not using the wrong direction). If I do the distance to travel from CP1 to CP2 is equal to CP2 to CP1 while the path is One-Way path. How can I fix this problem?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1684142568369.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517036iD971098007FE573C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1684142568369.png" alt="1684142568369.png" /&gt;&lt;/span&gt;distancetotravel(Model.find("CP1"), Model.find("CP2")) --&amp;gt; 1864.03 (mm)&lt;BR /&gt;distancetotravel(Model.find("CP2"), Model.find("CP1")) --&amp;gt; 1864.03 (mm)&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 09:24:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582754#M80301</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-05-15T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: distancetotravel is not considering the path way direction.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582755#M80302</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Also using cpdistance function sometimes does not work.
&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 09:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582755#M80302</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-05-15T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: distancetotravel is not considering the path way direction.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582756#M80303</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The control point is not a traveller on the AGV network, so &lt;EM&gt;distancetotravel()&lt;/EM&gt; will return the straightline distance.&lt;/P&gt;&lt;P&gt;If you use an actual 'AGV' (a task executer connected to the network) in the command, the returned distance will be along the network.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517032iABD3884C33282CB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have an example where &lt;EM&gt;cpdistance()&lt;/EM&gt; does not work? Otherwise I'm afraid it's not really possible to troubleshoot the problem.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 09:44:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582756#M80303</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-05-15T09:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: distancetotravel is not considering the path way direction.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582757#M80304</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Distancetotravel needs as first parameter a traveler not an object. If you use cpdistance you don't have this problem. See the attached example: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/68052-231-cpdistance.fsm" target="_blank"&gt;23.1. CPDistance.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope I have been helpful.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 09:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582757#M80304</guid>
      <dc:creator>jose_antonio_mad</dc:creator>
      <dc:date>2023-05-15T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: distancetotravel is not considering the path way direction.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582758#M80305</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;cpdistance() is the correct function for two control points, not distancetotravel. If you get unexpected results from this:&lt;/P&gt;&lt;P&gt;1) check your network integrity (visually)&lt;/P&gt;&lt;P&gt;2) refresh the path links (right click path):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1684157493370.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517034iD6E8617AC3062D54/image-size/large?v=v2&amp;amp;px=999" role="button" title="1684157493370.png" alt="1684157493370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) check the routing accessibility (right clickCP) and then hover over other CPs on the network to see if it's reachable and the distance. You can use this to see at which point the route fails and detect broken networks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1684157560705.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517035iC43947130AF1C98E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1684157560705.png" alt="1684157560705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 13:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/distancetotravel-is-not-considering-the-path-way-direction/m-p/13582758#M80305</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-05-15T13:34:42Z</dc:date>
    </item>
  </channel>
</rss>

