swenp Posted September 1, 2011 Report Share Posted September 1, 2011 What is the best way to retrieve a list of all files (not only VIs) from vi.lib, resource, instr.lib and user.lib that the VIs from my currently opened project are linked to? At the moment I am building source distributions with the "Exclude files from vi.lib" etc. checkmarks unchecked and the "Preserve file hierarchy" checked. But building source distributions takes a long time, often fails, and I don't need the files from my project compiled and exported, just the ones from vi.lib etc. So I am searching for a better solution, any ideas? Somehow the source distribution itself is retrieving the information I need, but how? Regards, Swen Quote Link to comment
Ton Plomp Posted September 1, 2011 Report Share Posted September 1, 2011 You can get that info from the project object: <img src="http://i.imgur.com/qNsTR.png" alt="" title="Hosted by imgur.com" /> (2011 snippet). Ton 2 Quote Link to comment
Aristos Queue Posted September 2, 2011 Report Share Posted September 2, 2011 You could use the "Get VI Dependencies" method on a VI Refnum for your top-level VI and set the Recursive parameter to true... it returns an array of paths... just take all the ones that are under vi.lib. Quote Link to comment
swenp Posted September 2, 2011 Author Report Share Posted September 2, 2011 Thanks Ton and Aristos Queue, for some reason I never stumbled upon the GetAllDescendents method, maybe I should have read the manual But now I'm happy with that, thanks again. Swen Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.