question

Denise H2 avatar image
0 Likes"
Denise H2 asked tannerp commented

Deleting label in the ProcessFlow

Hey!

How can I delete a label from an item in the ProcessFlow?

Thank you!

FlexSim 18.0.4
process flowlabels
5 |100000

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

Ralf Gruber avatar image
0 Likes"
Ralf Gruber answered

Hi Denise,

attached is a model to show you how to delete a label by code.
On the Source's Creation Trigger two labels are created.
The first one is deleted on the OnEntry Trigger of the Processor two, the second one by the Process Flow, when the item enters the Conveyor.

Is that, what you were looking for?

Best wishes

Ralf20180723-deletelabel-1804.fsm


5 |100000

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

Emily Hardy avatar image
0 Likes"
Emily Hardy answered

After looking at your model it looks like the issue is that you're assigning itemType to 4 within the 3D model, and then deleting that label and changing it within process flow. I changed your PF so that the object is created within PF and assigned a type label that can later be manipulated.

denise-support-model.fsm


5 |100000

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

Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered Denise H2 commented

Hello @Denise H2, you can also delete a label by using the Assign Labels activity in Process Flow and choosing the predefined option "Remove Label" as shown:


delete-label.png (46.9 KiB)
· 1
5 |100000

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

Denise H2 avatar image Denise H2 commented ·

Hey @Ralf Gruber and @Roi Sánchez.

Thanks for your help!

I tried the Assign Label Activity, but it doesn't work every time. Attached you can finde the model. In the first time it works, in the second it won't. What's wrong? 180723-pf.fsm

0 Likes 0 ·
180723-pf.fsm (211.2 KiB)

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.