<?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 to restrict the entry of agv on  agv path? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556949#M60326</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There isn't really a good way to do this without using control points.  AGVs were designed around using them and any other workaround to solving this problem will run the risk of causing other problems with your model.&lt;/P&gt;&lt;P&gt;One potential workaround would be to reverse the direction of the path in question and then use custom code to turn it back in the correct direction after 5000 seconds, allowing the AGV to travel on it.  Here is your model with this workaround: &lt;A id="20540" href="https://answers.flexsim.com/storage/attachments/20540-agvrouteanswer.fsm"&gt;agvrouteanswer.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that with this workaround the path doesn't become reversed again when you reset the model, so you will have to reverse it manually before running the model every time, or find some other way to reverse it every time you run the model.&lt;/P&gt;&lt;P&gt;Ultimately the best solution would be to just use control points.  If you are having problems with control points, let us know and we'll be glad to help you out with your questions.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 17:40:47 GMT</pubDate>
    <dc:creator>joseph_g3</dc:creator>
    <dc:date>2019-07-10T17:40:47Z</dc:date>
    <item>
      <title>How to restrict the entry of agv on  agv path?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556948#M60325</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;A id="20531" href="https://answers.flexsim.com/storage/attachments/20531-agvroute.fsm"&gt;agvroute.fsm&lt;/A&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20532-agvroute.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499625iF60B5240EB530166/image-size/large?v=v2&amp;amp;px=999" role="button" title="20532-agvroute.png" alt="20532-agvroute.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the above picture, i do not want the agv to travel on this path. But after like 5000 sec i want it to use this path. Is there any way to make this happen or any workarounds?&lt;/P&gt;
&lt;P&gt;I know that putting a control point in the other route and directing the agv would work. but i do not want to do that.&lt;/P&gt;
&lt;P&gt;Also i'm controlling the agv with only process flow. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 14:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556948#M60325</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2019-07-10T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict the entry of agv on  agv path?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556949#M60326</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There isn't really a good way to do this without using control points.  AGVs were designed around using them and any other workaround to solving this problem will run the risk of causing other problems with your model.&lt;/P&gt;&lt;P&gt;One potential workaround would be to reverse the direction of the path in question and then use custom code to turn it back in the correct direction after 5000 seconds, allowing the AGV to travel on it.  Here is your model with this workaround: &lt;A id="20540" href="https://answers.flexsim.com/storage/attachments/20540-agvrouteanswer.fsm"&gt;agvrouteanswer.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that with this workaround the path doesn't become reversed again when you reset the model, so you will have to reverse it manually before running the model every time, or find some other way to reverse it every time you run the model.&lt;/P&gt;&lt;P&gt;Ultimately the best solution would be to just use control points.  If you are having problems with control points, let us know and we'll be glad to help you out with your questions.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 17:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556949#M60326</guid>
      <dc:creator>joseph_g3</dc:creator>
      <dc:date>2019-07-10T17:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict the entry of agv on  agv path?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556950#M60327</link>
      <description>&lt;P&gt;Thanks this might Work. But I am not familiar with the use of the command &lt;/P&gt;
&lt;PRE&gt;function_s&lt;/PRE&gt;
&lt;P&gt;So if i have to make it two way and then again turn that off usin code, how would i do it?&lt;/P&gt;
&lt;P&gt;This would solve my issue of manually switching the directions.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:37:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556950#M60327</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2019-07-11T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict the entry of agv on  agv path?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556951#M60328</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here's an updated version of the model that instead switches it to be two-directional:&lt;/P&gt;&lt;P&gt;&lt;A id="20617" href="https://answers.flexsim.com/storage/temp/20617-agvrouteanswerupdated.fsm"&gt;agvrouteanswerupdated.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used this code to do it: &lt;/P&gt;&lt;PRE&gt;treenode path = Model.find("AGVNetwork/Path3");
setvarnum(path, "isTwoWay", 1);
function_s(node("/AGVNetwork", model()), "refreshMesh");
repaintview(activedocumentnode());
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Essentially, this code goes into the FlexSim tree structure and changes the value of whether or not the path is two-directional or not.&lt;/P&gt;&lt;P&gt;Unfortunately, when you run the simulation a second time (when the path starts out two-directional) you'll run into a problem where the path switches back to one directional but the AGV still travels on it.  The AGV module wasn't designed for changing path directions mid-run, so it would be difficult to find a way around this problem.  Feel free to experiment with it some more, though ultimately I recommend just using Control Points.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:17:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556951#M60328</guid>
      <dc:creator>joseph_g3</dc:creator>
      <dc:date>2019-07-11T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict the entry of agv on  agv path?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556952#M60329</link>
      <description>&lt;P&gt;Thank You! I decided to use control points, this did take some flexibility away, but it works for now. I would experiment the code that you provided and see how can i use it effectively.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 14:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-restrict-the-entry-of-agv-on-agv-path/m-p/13556952#M60329</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2019-07-15T14:17:38Z</dc:date>
    </item>
  </channel>
</rss>

