question

yoni A avatar image
0 Likes"
yoni A asked tannerp commented

tote + parts combined label

I have two item Types ( Type 1 =Red Color) and (Type 2= Green color); they have to go thru 5 processes in serial, and the processes do changeover based on the item Type, and the end the items are packed in a tote in a batch of 20, when they are combined (type 1 and Type2 ) with the tote, the end tote has no label, and I get errors that label does not exist as I want to send Type 1 to queue 1 and Type 2 to Queue 3, how can I assign a label to the (red parts + tote) and (green parts + tote), so they are diverted to different queues and I know how many totes of each item type were made

FlexSim 18.1.2
label assignment
· 6
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

assign a Type label to the tote with the value of the type of the first or last item in the tote. You can do this on process finish trigger of the combiner.

item.first.as(Object).Type

This gets you the Type value of the first item in the tote. Probably you don't need the direct casting to Object.

1 Like 1 ·
Shawn Murty avatar image Shawn Murty Joerg Vogel commented ·
"item.first." works with adding the label name as Jorg mentioned. 

This worked well, but I could not get "ItemType"  from the source to carry over (in 2018.2). I figured the ItemType is not recognized as a label in this scenario.

i tried both item.first.as(Object).Type and item.first.Type and could not get  this to work correctly. Any suggestions Jörg ?
0 Likes 0 ·
tannerp avatar image tannerp Shawn Murty commented ·

@Shawn Murty Could you post your model so we can take a look at it? If you don't get a response relatively soon, you might consider asking a new question and referencing this one since fewer people will see this.

My first thought is that it's a deprecated command or perhaps a difference in where the Type is being assigned, but I'd need to see a model to know for sure.

0 Likes 0 ·
Show more comments
Jeff Nordgren avatar image Jeff Nordgren commented ·

@yoni A,

Do you have your model or a sample model of what you have done to this point that you can send us to look at? That would be helpful in being able to answer your question more precisly.

Thanks.

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

NOTE: This question was answered in a subsequent question from Yoni.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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