LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Andi_S

Renaming of non-LabView files in project window

Status: New

Renaming files with F2 or the context menue entry "rename" is easy - as long as the file is a LabView or NI-File. But if it is just a simple *.txt, *.pdf, ... file it is not possible. Please add this function! - thanks.

 

2 Comments
ToeCutter
Active Participant

Good idea- and let me add a directory without jumping to explorer. Kudos.

BullMoose
Member

I want to expand on this idea a little and say that I'd like to see project use a better method for tracking non-Labview files (e.g. text config files, images).  I'd like to see something like an External File project item:

If placed on the diagram, it would return the path to the file. 

If you moved the file on disk using the project viewer, the path would update in code.

When you go to do a build/source distribution, the file automatically shows up as a dependency. 

 

You could keep track of the path in a global, but moving a file on disk becomes a multistep process (move file, update global), and if you want the project to be portable you have to manage the relative path stuff yourself, which means duplicating a lot of the work that NI has done with Projects.  You can manually add external files to a build, but again, it's an extra step and an opportunity to leave something out.