Jump to content
News about the LabVIEW Wiki! Read more... ×
Sign in to follow this  
GregFreeman

Add .mnu file from a non-default location programmatically

Recommended Posts

I am creating some .mnu files for the palettes programmatically using the Palette API in vi.lib. This all works fine, but what I want to do is add my .mnu files to the palettes without having to copy them all to menus\categories\<some API>. I want them to just stay where they are but have LabVIEW know to look there.

 

I know it's possible because I can edit palette sets and do this manually, pointing LV to my .mnu file on disk whether or not it is in the LV Installation Directory. But, I can't find a way to programmatically tell LabVIEW to add those same menu files. My only option so far is to copy them all to the <LV>\menu\categories\<API> then refresh the palettes.

 

Thoughts?

Share this post


Link to post
Share on other sites

I really hope you found the Palette Editing subpalette under Application Control.  Here you can open MNU files, and save them.  So if you want to add some MNU as a subpalette, you can open the MNU, add your subpalette, and then re-save it.

 

Say you want to add the OpenG array palette to your native LabVIEW array palette.  You'd read the <LabVIEW>\menus\Categories\Programming\array.mnu, then add your subpalette pointing to your MNU as an absolute path, then resave it.  Maybe looking at some of the OpenG MNU files might make understanding how they work easier.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.