question

random_user_777 avatar image
0 Likes"
random_user_777 asked Jeanette F commented

How to create multiple objects, and set their properties using excel input?

I need to create a model with 400+ queues and processors. Is there a way to provide an excel input of all the queues and processors to be created and set their properties using excel import? Would also be great to set connections between objects using this input as well.

FlexSim 23.1.4
queuesproperty tablecreate
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @random_user_777, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Yes, this would be possible. You can create objects through Objects.create() and set their properties with Object.setProperty(). At least numerical properties like process time or maximum content are easy to set this way. Other settings like "Send to Port" or a Pull Strategy would be more complex to set via code but still possible.

You can create connections through code as well with contextdragconnection().

5 |100000

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