question

Martin K5 avatar image
0 Likes"
Martin K5 asked Jason Lightfoot answered

Is it possible to access a script and share it?

Hi,

I would like to ask. I have written a script and saved it as a userScript and my question is, if I am able to access this script (file) and be able to share it? For example, I have created a warehouse model by code and I want to share this model to allow more persons editing the process flow.

Does anyone knows how to deal with this problem?


Thank you.

FlexSim 21.1.4
codescriptsaveaccessshare
· 4
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 ·
@Martin K5 I'm not sure what your issue is. Can you not find the user script you wrote in the model?
0 Likes 0 ·
Martin K5 avatar image Martin K5 Matthew Gillespie ♦♦ commented ·

Well, the question was meant that if I am able to access the script not by opening it in flexSim

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Martin K5 commented ·

The user script is stored in your prefs.t file which is contains information about your installation preferences. This is not something you could easily edit and merge of that's what you're thinking.

You could put your user script in a user command and then add that to a user library which you share with others, which could be more easily merged if you save the library as xml.

0 Likes 0 ·
Show more comments

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

The button for adding a user command to a library is described here.

That sections also describes user commands generally - it's just a question of choosing a name and any parameters and then the script can be put in the code directly. Then just use the name of the script to run the code.


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.