<?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: Flexscript to remove an AGV from a network in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975919#M99668</link>
    <description>&lt;P&gt;I would place a dummy CP somewhere in the model (separate from the main network) and temporarily assign the AGV to it.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AGV(TE).currentCP = ...;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 14 Jan 2026 07:01:53 GMT</pubDate>
    <dc:creator>FelixMoehlmann</dc:creator>
    <dc:date>2026-01-14T07:01:53Z</dc:date>
    <item>
      <title>Flexscript to remove an AGV from a network</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975390#M99661</link>
      <description>&lt;P&gt;I have a larger model that I am working on.&amp;nbsp; I need to remove an AGV from a path so that it can be ignored by other AGVs for a specific condition.&amp;nbsp; Then I need to add the AGV back on the path so that it can be recognized again.&amp;nbsp; I think I have the code right to remove the AGV but when I try to add it back, it does not seem to work&lt;/P&gt;&lt;P&gt;code to remove:&amp;nbsp;token.AGV.as(Object).setProperty("Navigator",NULL);&lt;/P&gt;&lt;P&gt;code to add back:&amp;nbsp;function_s(Model.find("ControlPoint2"),"addConnection",-1,token.AGV);&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 18:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975390#M99661</guid>
      <dc:creator>jpokornyAXJ2L</dc:creator>
      <dc:date>2026-01-13T18:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flexscript to remove an AGV from a network</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975896#M99665</link>
      <description>&lt;P&gt;I would try if I can attach and detach a taskexecuter by contextdragconnection to an AGV network.&amp;nbsp;&lt;BR /&gt;Or a different try would be to &lt;A href="https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/CommandReference/CommandGroups.html#cpdeallocate" target="_blank" rel="noopener"&gt;deallocate a control point&lt;/A&gt; so that is allocatable by other AGV members. Later I would allocate the control point again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 06:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975896#M99665</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2026-01-14T06:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flexscript to remove an AGV from a network</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975919#M99668</link>
      <description>&lt;P&gt;I would place a dummy CP somewhere in the model (separate from the main network) and temporarily assign the AGV to it.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AGV(TE).currentCP = ...;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Jan 2026 07:01:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13975919#M99668</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-01-14T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flexscript to remove an AGV from a network</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13977786#M99684</link>
      <description>&lt;P&gt;Kind of new to coding trying to find current cp.&amp;nbsp; Why doesn't this work in custom code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AGV agv = token.AGV;&lt;BR /&gt;return agv.currentCP;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 13:20:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13977786#M99684</guid>
      <dc:creator>jpokornyAXJ2L</dc:creator>
      <dc:date>2026-01-15T13:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flexscript to remove an AGV from a network</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13977944#M99686</link>
      <description>&lt;P&gt;You can't directly cast objects as an AGV class variable. You need to use the constructor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html#Method-AGV" target="_blank"&gt;https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html#Method-AGV&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AGV agv = AGV(token.AGV);
return agv.currentCP;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jan 2026 14:41:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-to-remove-an-agv-from-a-network/m-p/13977944#M99686</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-01-15T14:41:45Z</dc:date>
    </item>
  </channel>
</rss>

