08-12-2010 06:48 AM
Hi there,
I know that may be an old topic, but I still have no better solution.
In my project are not only the vis but other kinds of data, for instance png, mp4...
I didn't use the Auto-populating folders (instead the virtual folders) in the project structure. It' s quite sure that in the folder on the hard drive there should be many vis and files, that are no longer used in the project.
Also some VIs are called dynamically in the main vi, which can not be saved as using the save hierarchy function.
I'm not expecting to delete all the VIs, which is not used. But at least to tell which VI is still in use.
Any suggestions and ideas?
Wilbur
08-12-2010 06:55 AM
I made a basic tool vi that compares the 'AllVIsInMemory' output with a recursive directory listing. Everything that wasn't in the AllVIsInMemory was written to a listbox. The delete was performed manually. I also did output the number of 'suspected' files, so I had an isea how clean my project folder was. What I didn't implement but what would be an easy improvement is filtering by extension (so limit to vi, vit, ...).
I don't have this vi with me right now, but it's easy to do your own.
Felix
08-12-2010 09:36 AM
I cant find it right now, but I did something similar to Felix, but instead of VIs in memory, I listed all the files in a project and compared that to a recursive file listing of a folder.
There's a bunch of property nodes and invoke node commands to navigate a project... but as I said, I cant seem to find my old utilitiy right now.
08-12-2010 09:50 AM
What if you make a new Source Distribution in your project all active VI's?
I did something similar to export active VI's in an old project and reduced size with 65ish%.
/Y
08-12-2010 12:16 PM
The OP did mention dynamically called vi's, which won't be included in a Source Distribution, although they could be added manually.

08-12-2010 01:00 PM
Although the project did away with much of the need for a project tree vo when you have multiple toplevel and dynamic vis a project tree vi still is noce. Essentially a vi that has all toplevel and dynamic vi on the block diagram. Now there is a single vi that calls all vis in a project. It is a useful tool for tracing down dead vis.
08-12-2010 03:57 PM
Using a source distribution is also a nice suggestion. Using the OpenG builder, it's easy to add the dynamically called vis (as in the App builder and not in the Save As dialog). But I don't know if it allows to preserve folder hierachies. Then you would code the opposite tool of mine that copies all none LV files to the new source distribution.
Felix