question

Leah R avatar image
1 Like"
Leah R asked Leah R edited

Change the number of locations in a MultiLocation from the parameters table ?

Hi !

Is there a way to change the number of locations of a multilocation item from the parameters table ?

1644232003349.png Thanks in advance,

Leah

FlexSim 21.0.0
parametersmultilocation
1644232003349.png (5.0 KiB)
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Leah R commented

The number of objects in a multilocation can the changed with

function_s(multiLocation, "setNumLocations", value);

This can be used in the "On Set" of a parameter. In the attached model I also added some code to arrange the chairs in rows of 8 and copied the code that gets run when normally editing the location in order to resize the bounding box.

MultilocationNumParameter.fsm


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

Leah R avatar image Leah R commented ·

Hi Felix ! Thanks you so my much, this is extremely helpful !

0 Likes 0 ·