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:

Object te =  Model.find("TaskExecuter1");
AGV agv = AGV(te);
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.

park avatar image park commented ·

Thank you for your reply. By the way, how to determine the type of node and what types are there

0 Likes 0 ·
Iago MF avatar image Iago MF park commented ·
0 Likes 0 ·
1697442347236.png (27.2 KiB)
park avatar image park Iago MF commented ·

That's the answer I want. Thank you again

0 Likes 0 ·