question

Claire Krupp avatar image
0 Likes"
Claire Krupp asked Claire Krupp commented

How to share a Color Palette to a Library file?

I have created a standard Color Palette that I want to copy to other models and share with my colleagues.

It does not seem to have an "add to Library" button like other elements do, and I can only duplicate it inside the same model.

Is there a way to copy it to another model?

Thanks!

FlexSim 21.2.2
user librarycolor palette
5 |100000

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

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Claire Krupp commented

You can use applicationcommand("addtouserlibrary") in a script window to add the palette to a user library.

  1. applicationcommand("addtouserlibrary", <object>, <rankOfUserLibrary>, <autoInstall>);

This will add the color palette to the first loaded user library:

  1. applicationcommand("addtouserlibrary", Model.find("Tools/ColorPalettes/ColorPalette1"), 1, 0);
· 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.