04-02-2021 01:38 PM
When editing the palette set, you can make a subpalette from a .llb; and you can rearrange the items in that subpalette. I want to retrieve that palette arrangement. I've discovered that the arrangement info is somewhere inside the .llb, but I can't find it. Does anyone know how to extract this information?
04-04-2021 09:39 PM
Hi Paul,
I am not very sure if I understand the difficulty you are having correctly.
If you are looking for your subpalette arrangement, it should be in the .mnu file which is located in the project folder where you saved it when editing your subpalette after linking it to a .llb file.
Here are some example from our the KnowledgeBase which shows the way to create or edit items in subpalette. If you trace back your path when you created the subpalette, you might be able to find your subpalette arrangement.
1. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGAyCAO&l=en-MY
2. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIU7CAO&l=en-MY
04-07-2021 07:02 PM
@flim21 wrote:
Hi Paul,
I am not very sure if I understand the difficulty you are having correctly.
If you are looking for your subpalette arrangement, it should be in the .mnu file which is located in the project folder where you saved it when editing your subpalette after linking it to a .llb file.
Here are some example from our the KnowledgeBase which shows the way to create or edit items in subpalette. If you trace back your path when you created the subpalette, you might be able to find your subpalette arrangement.
1. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGAyCAO&l=en-MY
2. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIU7CAO&l=en-MY
AS far as I can tell, there isn't a .mnu file associated with the subpalette that is defined by a .llb. The arrangement seems to be stored inside the .llb, not in any .mnu,
04-08-2021 10:45 AM
I don't think there's an easy way to do this. The closest I found was using this VI:
[LabVIEW 20xx]\vi.lib\Palette API\ResMgr\Load.vi
If you pass an LLB to that VI, you'll get all the resources stored in the LLB, and you can see a few of those resources have to do with the palette arrangement. As for interpreting the information in those resources, that's beyond the scope of my knowledge.
04-08-2021 11:41 AM
@Darren wrote:
I don't think there's an easy way to do this. The closest I found was using this VI:
[LabVIEW 20xx]\vi.lib\Palette API\ResMgr\Load.vi
If you pass an LLB to that VI, you'll get all the resources stored in the LLB, and you can see a few of those resources have to do with the palette arrangement. As for interpreting the information in those resources, that's beyond the scope of my knowledge.
Of course to use that, you must do something unsavory, like the attached VI.
04-08-2021 02:29 PM
This works for me.
04-08-2021 02:46 PM
Cool, glad I could help.