<?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 change max allocation capacity of a controlpoint on dynamically? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13638408#M96216</link>
    <description>&lt;P&gt;What actually worked on 23.0 is this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;TaskExecuter waitingAGV = allocCP.allocations[1].as(treenode).up.up.as(AGV).object;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 19 May 2025 14:53:21 GMT</pubDate>
    <dc:creator>jkhedekar</dc:creator>
    <dc:date>2025-05-19T14:53:21Z</dc:date>
    <item>
      <title>How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13622008#M96032</link>
      <description>&lt;P&gt;So I have a taskexecutor which is delivering a material. It reaches a point and takes 300 sec to unload, I want to make the capacity of the allocation point 2 after 30 sec of unload has passed so task executor behind can technically overtake it, and then onces 300 sec are complete make the controlpoint's max allocation to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing the following, but I know its missing something:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Object te= so.forklift;
AGV agv = AGV(te);

Node cp = agv.currentCP.as(treenode);
cp.maxAllocations = 2;
return cp.maxAllocations;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 May 2025 15:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13622008#M96032</guid>
      <dc:creator>jkhedekar</dc:creator>
      <dc:date>2025-05-09T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13624753#M96048</link>
      <description>&lt;P&gt;"Node" should be "treenode" and you have to use ".setProperty()". Your syntax would set a label called 'maxAllocations' on the CP. Changing the allowed allocation count will not allow an already waiting AGV to continue automatically. You would need to make it restart its travel task.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object cp = agv.currentCP;
cp.setProperty("MaxAllocations", 2);
AGV.AllocatableObject allocCP = cp;
if(allocCP.as(AGV.AllocatableObject).requests.length)
{
	TaskExecuter waitingAGV = allocCP.requests[1].allocator;
	TaskSequence preemptTS = TaskSequence.create(waitingAGV, 1000, 1);
	preemptTS.addTask(TASKTYPE_BREAK, NULL, waitingAGV.activeTaskSequence);
	preemptTS.dispatch();
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 May 2025 06:45:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13624753#M96048</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-05-12T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626175#M96084</link>
      <description>&lt;P&gt;For this line:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;TaskExecuter waitingAGV = allocCP.requests[1].allocator;&lt;/LI-CODE&gt;&lt;P&gt;Getting the following error:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Data type AGV.AllocationPoint does not support property allocator&lt;/LI-CODE&gt;&lt;P&gt;Also, I am not using task sequence per say, I am using token.forklift after acquiring it throught&amp;nbsp; resource in process flow where I am using this token.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 14:53:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626175#M96084</guid>
      <dc:creator>jkhedekar</dc:creator>
      <dc:date>2025-05-12T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626176#M96085</link>
      <description>&lt;P&gt;[Re posted by error] Refer to comment below&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 14:54:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626176#M96085</guid>
      <dc:creator>jkhedekar</dc:creator>
      <dc:date>2025-05-12T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626213#M96087</link>
      <description>&lt;P&gt;You must be using an older version then (23.2 or before). Try using this instead:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;TaskExecuter waitingAGV = allocCP.requests[1].as(treenode).up.up.as(AGV).object;&lt;/LI-CODE&gt;&lt;P&gt;Internally, a single task given through a task activity is still a task sequence, just with a default set of parameters (priority 0 and no preemption). It also actually contains two tasks, the given task itself and callback to let the token continue.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 15:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13626213#M96087</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-05-12T15:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change max allocation capacity of a controlpoint on dynamically?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13638408#M96216</link>
      <description>&lt;P&gt;What actually worked on 23.0 is this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;TaskExecuter waitingAGV = allocCP.allocations[1].as(treenode).up.up.as(AGV).object;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 May 2025 14:53:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-max-allocation-capacity-of-a-controlpoint-on/m-p/13638408#M96216</guid>
      <dc:creator>jkhedekar</dc:creator>
      <dc:date>2025-05-19T14:53:21Z</dc:date>
    </item>
  </channel>
</rss>

