question

Claire Krupp avatar image
0 Likes"
Claire Krupp asked Joerg Vogel commented

How can I change the AGV Type of an object created in Process Flow?

I am using Process Flow to create people as they arrive on buses. I am creating them at a Control Point in an AGV network so that I can use the collision avoidance features of the AGV paths. I have the Person "max speed" set in the Flowitem Bin, and each person has the correct speed in the Quick Properties, but the network is ignoring that, and using the speeds in the AGVNetwork Properties, which is for the buses.

I set up a second AGV Type for "DefaultPerson", but when the person is created it automatically becomes .agvType = 1 and it uses the first row. The same thing happens with the buses (which are also created in PF), so if I switch the DefaultPerson to the first row then all the buses travel too slowly.

I don't see anything see in the Process Flow "Create Person" activity to allow me to set the agvType, so how would I do that? (I looked into the "Create Object" activity and that does not have an obvious way to do it either.)

FlexSim 19.0.0
agv networkcreate object
· 2
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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Joerg Vogel commented

You can use the AGV() command to get direct access to that agv data node rather than referencing it by name in a path:

  1. AGV agv = AGV(token.Person);
  2. agv.as(treenode).find("agvType").value = 3;

I'll add a case to the dev list to consider adding a property to the AGV FlexScript class to access agvType directly.

· 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.