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.

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

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

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.

Claire Krupp avatar image Claire Krupp commented ·
Thanks @Matthew Gillespie . So it sounds like I have to create at least one user library first?
0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Claire Krupp commented ·

Yes. Or you can also create a user library through code.

applicationcommand("newuserlibrary")
0 Likes 0 ·
Claire Krupp avatar image Claire Krupp Matthew Gillespie ♦♦ commented ·
Thanks!
0 Likes 0 ·

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.