10-21-2008 11:30 AM
10-21-2008 12:05 PM
10-22-2008 08:11 AM
10-22-2008 08:50 AM - edited 10-22-2008 08:50 AM
I'm not sure I understand what you're driving at...
Side-note: in your code you have this:

which can be replaced with this:
10-22-2008 09:26 AM
Hi
I was going for the same type of solution, but I have a basic question: How do you open/get a reference to a specific .lvproj file?
Regards
/Mattias
10-22-2008 09:37 AM
I do this ...
10-22-2008 09:52 AM
Ah thanks for that!
What I'm really getting at is: Are four property nodes and two for loops needed to get this information? or is there some other property node or other method that would simplify things. (like you just did with the empty/path string thingy)
10-22-2008 03:51 PM
Hi,
I am not exactly sure what you are looking for as an answer, but your code looks like the best way to implement what you want to do. So good work.
10-22-2008 05:14 PM - edited 10-22-2008 05:15 PM
Not quite.
The code relies on using the Dependencies property. Two problems with this: (1) You need to manually refresh the Dependencies list, if you actually use it (I usually don't); (2) the Dependencies list isn't the same as the VIs in the project. This is a list of all VIs used. In other words, the entire hierarchy.
So, the question is: are you trying to get the list of all VIs used, in which case you would need to use the Dependencies property. Or, are you trying to get a list of the project's items which are VIs? What about libraries and other files that may be in the project?
Also, to the question about getting a project reference, an easier method is to use the Application class' "Project.Open" method:
10-23-2008 09:10 AM
Thanx.
For my application/tool I'm trying to get just a list of all vi:s in project file. I have not worked out the solution I want yet... I find it tricking when folders (eg. children reference) are included in the file. I can make it easy and do "expand all" + "ctrl a" in the project file and do the above... resulting in empty paths for all my folders..