04-02-2014 03:07 PM
So I I have a library (.lvlib) and I have several folders with several files in them, and those folders some times have folders with files in them. Using the Add >> Folder (Snapshot) function I can add all my files and folders in one click (more or less).
Unfortunatly I can't seem to find that function using Invoke/Propety nodes. How can I add a snapshot folder to a library programtically?
At the moment I am working on writing my own routine that will go through all files, and all folders and add them using the Add File invoke node, but this is tedious, slow, and error prone.
BTW libraries don't support auto-populate so that won't work either.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
Solved! Go to Solution.
04-03-2014 01:20 AM
I don't know if this is the best way, but you can call the AddItem method (with type folder) on the library, then call Convert to auto-pop and stop auto-pop on the new item (just calling the first method seems to ignore the path input).
04-03-2014 05:58 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-03-2014 06:34 AM
@Hooovahh wrote:
But admitidly i havent tried it.
I have. I can't comment on auto-pop. folders, since I never use them, but the code I described does work. You could also skip the last step and keep the auto-pop. folder, but I have no idea how LV will behave in such a situation. It might be perfectly fine. It might cause problems.