question

Stan Davis avatar image
0 Likes"
Stan Davis asked Stan Davis commented

Remove Slot Label via Code

Per Storage.Slot.labelProperties help section, setting a slot label is performed as follows..

slot.SKU = 5;

If the label name does not exist, it will be added.

Conversely, how does one remove a slot label using code? I am unable to find a solution in help or Answers.

Thanks

FlexSim 22.2.0
scriptslot labels
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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Stan Davis commented

A slot label is a node. Like you remove any node, you destroy it.

slot.labels[“SKU”].destroy()
· 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.

Stan Davis avatar image Stan Davis commented ·

Somethings are so obvious after you see the answer. Thanks - Stan

1 Like 1 ·