question

Tomi Kosunen avatar image
1 Like"
Tomi Kosunen asked Mischa Spelt commented

Unknown type Slot in declaration of variable

I'd like to write a code to get a storage slot for a Item. I can't get the syntax right. Why the following gives me an error:

Slot MySlot; // This gives an error: "Unknown type Slot in declaration of variable MySlot"

Slot = getSlot("1--01-1-1");



FlexSim 20.2.3
flexsim 20.2.3slot
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

Mischa Spelt avatar image
1 Like"
Mischa Spelt answered Mischa Spelt commented

Hi Tomi,

The class name is actually Storage.Slot. Unfortunately FlexSim highlights Slot so it seems like valid code but it should actually be

  1. Storage.Slot MySlot = getSlot("1--01-1-1");


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