question

Jarod P avatar image
0 Likes"
Jarod P asked Jarod P commented

Items will not create in group of queues.

I have a scheduled arrival source that is creating tokens based on a global table. The token represents a quantity of items and the location of those items that I need to create in the 3d model. I have grouped all of the queues together. I'm struggling to figure out how to create the number of items I need in the locations they are supposed to be inside the model. In the create items process flow step I feel is where I'm having the disconnect. I can step the tokens through and all of the info they should need is there but I don't feel I've connected the label that tells which queue the item should be created in to the group of queues in a way the code recognizes it. I can get the process flow to create the items in a specific queue by selecting it from the Flex Sim Event Handler and selecting a specific queue but I can not select the group. Below are screenshots of the labels and the table I create, then of how I have the create item step laid out so far.

groupcreating flow items
· 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.

Braydn T avatar image Braydn T commented ·

@Jarod P

Could you upload your model so we can take a closer look?

0 Likes 0 ·
Jarod P avatar image Jarod P Braydn T commented ·

Here is what I have so far.

buck-rack-conveyors-1-1.fsm

0 Likes 0 ·

1 Answer

Braydn T avatar image
0 Likes"
Braydn T answered Jarod P commented

@Jarod P

Add this: model.find(token.BRLane) to the Create in Field in the Create Buck Racks Task.

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

Jarod P avatar image Jarod P commented ·

@Braydn T thank you. Why wouldn't setting the create in to the group and referencing the table using tokenIndex and the column that contains the queue work in this scenario? I understand why what you provided works im just trying to understand why what I wanted to do wouldn't.

0 Likes 0 ·
Braydn T avatar image Braydn T Jarod P commented ·

@Jarod P I think you may eventually be able to get that to work. At least in the model I have, the Create In field is "None". You hadn't specified anywhere to create the 3D objects. I would still probably not do it that way because you had already accessed the table to assign the label. You will have quicker run time if you limit the amount of times you are looking up items in a table.

0 Likes 0 ·
Jarod P avatar image Jarod P Braydn T commented ·

@Braydn T I had tried Groups("Buck Rack Group")[[Table("Buck Rack Lanes")[tokenIndex][5]] with no success, kept getting an array out of bounds error. I was thinking I had to tie the token to the group somehow before it would create the item.

0 Likes 0 ·