question

Ksenia F avatar image
0 Likes"
Ksenia F asked Joerg Vogel commented

How can you add 30 identical objects at the same time to the model?

I need to add 30 gurneys to the model, is it possible to implement this more easily than simply transferring from the library to the 30 gurney model.

Thank you!

FlexSim 21.0.1
flexscriptflexsim healthcare
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

CTRL + c and CTRL + v. Copy one, select both then copy two, select all then copy four, then copy eight. If you need a whole bunch often, then drag them into a plane and create an user library object of the plane.

0 Likes 0 ·

1 Answer

Roi Sánchez avatar image
1 Like"
Roi Sánchez answered

After dragging the first gurney to your model (Gurney1), you can easily make copies of it until having the quantity you need:

treenode firstGurney = Model.find("Gurney1");
int i;
for(i=2; i<=30; i++){
    treenode newGurney = createcopy(firstGurney, model());
}
5 |100000

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