question

Griffin Burwell avatar image
0 Likes"
Griffin Burwell asked Griffin Burwell commented

Change object color upon changeover?

I referenced a response by @Parker S on changeovers and am wondering if there is a way to change the color of objects being created by the source after a number of increments? Additionally, I would like to change the item label ID after each accumulation of 5. changeover-question.png

FlexSim 23.1.1
change color
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

Parker S avatar image
1 Like"
Parker S answered Griffin Burwell commented

Hi @Griffin Burwell

You could set a label on the source after each changeover and use that label to set color on the items:

1681848836391.png.

You could do something similar for changing item labels:

1681849032678.png

If you need additional assistance, it would be best to upload your model if possible.


1681848836391.png (32.8 KiB)
1681849032678.png (17.0 KiB)
· 8
5 |100000

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

Griffin Burwell avatar image Griffin Burwell commented ·

Hi Parker, it is actually one I downloaded from a previous response you had on the support forum. It is attached below. Since it is a hybrid setup between process flow and the 3D model, I am trying to figure out how the color and label or items being created by the source could change only after each process flow changeover.

support-changeovercounter.fsm

0 Likes 0 ·
Parker S avatar image Parker S ♦ Griffin Burwell commented ·

I see now. I didn't recognize my own model!

If you are doing this like as I described in my answer above, you'll first need an Assign Labels activity somewhere in the changeover logic. You can set labels on 3d objects by clicking the sampler icon and then the object.

screenshot-2023-04-19-124835.png

In this example, I'll use just one label "TypeColorValue" on the Source to set type and color on the items.

1681930632573.png

You could use two different labels for type and color and pull values from a global table if you need specific values rather than just incrementing the label by 1. If you would like to see an example of that, just let me know and I'll attach another model showing that.


support-changeovercounter_TypeColorChange.fsm

0 Likes 0 ·
Griffin Burwell avatar image Griffin Burwell Parker S ♦ commented ·

increment-issue.pngThank you for the reply! The source now changes color, but does so after 11 units rather than 5.Maybe an issue with the incrementor. Let me know if you figure out the issue!

0 Likes 0 ·
increment-issue.png (69.8 KiB)
Show more comments