question

Jenny T avatar image
0 Likes"
Jenny T asked Joerg Vogel answered

Acquiring resources in custom code block ?

Hi, I wanted to know if there was a way to acquire resources in the custom code block using flexscript? I am making a model in process flow and I wanted to acquire resources in my custom code block instead of using the 'Acquire Resources' block. I haven't found anything in the user guide about how to do this but I may just be looking in the wrong spot.

Thank you very much

FlexSim 20.0.0
flexscriptacquire resourceprocess flow resources
· 3
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

You can push and pull from a Global List in code using the List methods like List("ListName").pull(). But other than this, no you can't acquire a resource through code.

2 Likes 2 ·
tannerp avatar image tannerp commented ·

Yes, @Jörg Vogel is right. The resource in Process Flow is basically an item on a list.

What I'm curious about is why you don't want to just use the default Acquire Resources activity. Is there a certain functionality you're trying to achieve?

1 Like 1 ·
Jenny T avatar image Jenny T commented ·

Thanks very much everyone, I will try lists :)

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

I think it is a pull from and push to list combination. But I might be wrong.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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