question

MR avatar image
0 Likes"
MR asked Jeanette F commented

Using flexsim script and global table to create fixed resources

Hello,

I added three types of processes to the user library, which are plane1, plane2, and plane3. I'm using Flexsim Scirp to add different processes into the model, instead of dragging it.

I create an Excel sheet as below. Column A represents the processes in the user library. Column B represents the quantity I want to create in the model.

1715700229320.png

The button section in the dashboard can import Excel to the global table. I'm wondering if importing Excel and adding the numbers of processes to the model can be done at the same time. For example, when I import the sheet below, the model appears as 3 plane1, 2 plane2, and 1 plane3 at the same time.

process.xlsxplane.fslCreate.fsm

FlexSim 24.0.0
globaltableflexsim script
process.xlsx (8.1 KiB)
plane.fsl (4.3 KiB)
create.fsm (32.2 KiB)
· 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 @MR, was Joerg Vogel'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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

@MR

https://docs.flexsim.com/en/24.0/Reference/Tools/PropertyTables/PropertyTables.html#autoBuild

This is a newer approach. You can also create objects by commands and methods. If you look for key phrases like create model by script or code, you will find answers and discussions here at this site from the past. It is nothing new. There are some limits creating dynamically process flow logic sheets.

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

MR avatar image MR commented ·

Hi @Joerg Vogel,

I'm trying to understand the method of creating object you gave. But, I can't understand without a demonstration.
I have five kinds of process as below:1715870883501.png

And, I'm still using the method from before. Five different processes can be created in the model and the Excel can be imported at the same time.

1715871054514.png

The first column means the type of process, the second column means the quantity of process in the first column I want to create.1715871470143.png1715871601794.png

Can Flexsim create the process and quantity of process I want, while importing Excel?

So, I just need to import Excel to Flexsim after modifing the data in Excel, then it can auto building the model. If Flexsim can do this, can you using a simple model to demonstrate it? Or is there any living example for me to reference?

Thanks.

auto.fslauto.fsmtime.xlsx

0 Likes 0 ·
1715870883501.png (155.5 KiB)
1715871054514.png (172.4 KiB)
1715871470143.png (397.1 KiB)
1715871601794.png (386.8 KiB)
auto.fsl (5.7 KiB)
auto.fsm (34.6 KiB)
time.xlsx (9.0 KiB)
Joerg Vogel avatar image Joerg Vogel MR commented ·

@MR, I would try this in much smaller steps. And I would try to find answers describing this approach. Doing this on a large scale creates many errors one can make. And it is hard to correct them all.

0 Likes 0 ·