question

park avatar image
0 Likes"
park Suspended asked park Suspended commented

How to get nextCPPreArrivalPoint of agv by code?

tree屏幕截图-2023-10-16-111031.png

FlexSim 22.2.0
using code
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Iago MF avatar image
0 Likes"
Iago MF answered park Suspended commented

Hi!

That node is a Simple Data Type node. You can access its information with the command getsdtvalue(), for example:

  1. Object te = Model.find("TaskExecuter1");
  2. AGV agv = AGV(te);
  3. return getsdtvalue(agv.as(treenode),"nextCPPreArrivalPoint");

Here you have the documentation:

https://docs.flexsim.com/en/23.2/Reference/CodingInFlexSim/CommandReference/Commands.html#getsdtvalue

I hope it helps you!

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.