<?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: A*  custom code problem in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546537#M52142</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;This looks like the code I provided in another question that was asking for prioritization on an &lt;EM&gt;AGV network&lt;/EM&gt;. I thought it would be obvious that the same code won't work when using A*.&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 Aug 2022 05:55:00 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2022-08-10T05:55:00Z</dc:date>
    <item>
      <title>A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546535#M52140</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;我之前有在另一個問題詢問過了，但因為檔案的問題無法解決，目前的問題是我不知道報錯發生的問題是甚麼。&lt;span class="lia-inline-image-display-wrapper" image-alt="1659934941759.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511992i02A7516798000AC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1659934941759.png" alt="1659934941759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 05:02:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546535#M52140</guid>
      <dc:creator>a9080109</dc:creator>
      <dc:date>2022-08-08T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546536#M52141</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/29682/a9080109.html" nodeid="29682"&gt;@mark zhen&lt;/A&gt;, I found one of your problems.&lt;/P&gt;&lt;P&gt;In your AGV Process Flow, the "Custom 1Code" activity tries to call ".first" on a variable that is null.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660085959851.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511977i82DE4ADA3C2AC989/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660085959851.png" alt="1660085959851.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The "paths" variable comes out null, meaning that there is no "travelPath" subnode coming from the agvNavNode variable. When I go to the "agvNavNode" location, this is what I get (it's referencing TaskExecuter2 in the error at 18 seconds).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660086203936.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511978i4B8DC1AF6077B0DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660086203936.png" alt="1660086203936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You'll have to get the paths of the agv another way.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Aug 2022 23:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546536#M52141</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-08-09T23:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546537#M52142</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;This looks like the code I provided in another question that was asking for prioritization on an &lt;EM&gt;AGV network&lt;/EM&gt;. I thought it would be obvious that the same code won't work when using A*.&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Aug 2022 05:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546537#M52142</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-10T05:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546538#M52143</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;沒錯這是您之前回覆的問題，但我想要嘗試將兩者進行結合，這樣也方便在很窄的路上利用a*來進行路徑的計算可以不會有邏輯死結的情況。&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Aug 2022 12:21:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546538#M52143</guid>
      <dc:creator>a9080109</dc:creator>
      <dc:date>2022-08-10T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546539#M52144</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I had a look at the model you uploaded to google drive in your &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/124888/a-star-can-call-car.html?childToView=125626#comment-125626" target="_blank"&gt;other post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The collision logic will work without the 'Custom 1Code' activity. It was used to determine which TaskExecuter would wait and which one could continue immediately (simulating the waiting one stepping out of the way).&lt;/P&gt;&lt;P&gt;The 'Ignore Inactive Members' setting is currently active in the A* navigator. So when a TaskExecuter gets stopped, it will deallocate its node which allows the other to continue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660199391557.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511980iB3A7A8FDAFDD5376/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660199391557.png" alt="1660199391557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you still want to use the logic where only one has to wait, you could read the destination from the currently active task and make a decision based on that.&lt;/P&gt;&lt;P&gt;In the example below, the TaskExecuter that is travelling towards Queue1 does not have to wait.&lt;BR /&gt;Important: The destination is determined before the TaskExecuter is stopped (yellow)! The activity marked in orange then later checks if the destination is Queue1. If so, a delay time of 0s is returned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660199693008.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511981iB513FB57ED97A21A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660199693008.png" alt="1660199693008.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I noticed two errors in the ProcessFlow:&lt;/P&gt;&lt;P&gt; - The order of the Push the List activities should be switched; the parking is only made available once the AGV is pulled by another task.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660200022415.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511982i0C53AF0BA8991B09/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660200022415.png" alt="1660200022415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- The push values in both activities are not set properly. Those should be the respective objects (AGV, ParkPoint).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660199988397.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511983i35A3F712ADE2BAA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660199988397.png" alt="1660199988397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 06:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546539#M52144</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-11T06:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546540#M52145</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;This is a bit too complicated. Could you please let me refer to your file?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 Aug 2022 09:04:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546540#M52145</guid>
      <dc:creator>a9080109</dc:creator>
      <dc:date>2022-08-14T09:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546541#M52146</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; ！你能讓我參考一下嗎?
&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 12:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546541#M52146</guid>
      <dc:creator>a9080109</dc:creator>
      <dc:date>2022-08-15T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546542#M52147</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can download the modified file here. &lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1i94UTAguwRbFk0kJ1L3i-QKTbYYjTQGI/view?usp=sharing"&gt;https://drive.google.com/file/d/1i94UTAguwRbFk0kJ1L3i-QKTbYYjTQGI/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Though there really aren't many changes compared to your version.&lt;/P&gt;&lt;P&gt;- Removed the previous custom code that used the AGV system&lt;BR /&gt;- Added the yellow Assign labels activity with the respective code (see last comment)&lt;BR /&gt;- Modified the orange activity by adding the marked code (see last comment)&lt;BR /&gt;- Switched the order of the mentioned Push to List activities&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 13:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546542#M52147</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-15T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546543#M52148</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; 我還有新增一個問題!再麻煩您有空幫我解答一下
&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 13:49:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546543#M52148</guid>
      <dc:creator>a9080109</dc:creator>
      <dc:date>2022-08-15T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: A*  custom code problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546544#M52149</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/29682/a9080109.html" nodeid="29682"&gt;@mark zhen &lt;/A&gt;, In reference to the original question, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Aug 2022 22:16:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-custom-code-problem/m-p/13546544#M52149</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2022-08-17T22:16:41Z</dc:date>
    </item>
  </channel>
</rss>

