LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename project folder and/or project file from Files view

Hi all,

 

Is there a way to rename a project folder (top level or sub folders) and/or the project file to something else such that LabVIEW will automatically relink all the dependencies with no manual intervention?

 

As an example, take a look at the attached images of a dummy project I made. When you right click there's no option to 'Rename' like you can for VIs, however you can 'Move on Disk...'

 

Is there an easy way to do this as I have a project with a few folders I need to rename, including the project name and the main project folder, however I know from past experience if you simply rename this in Windows you spend the next two days pointing to all the dependencies again! 

 

I'm wondering if a workaround is creating a new folder with the name I want, move the files over to the new folder, move the new folder into the project then finally delete the old empty folder. 

 

Any help or thoughts would be most welcome.

 

Cheers

 

Mitch

0 Kudos
Message 1 of 4
(3,288 Views)

@Mitch_Peplow wrote:

I'm wondering if a workaround is creating a new folder with the name I want, move the files over to the new folder, move the new folder into the project then finally delete the old empty folder.


That's basically what I have been doing.  I have been refactoring a bunch of libraries lately and what I did was right-click on the class or library from the project view and "rename" it to the desired new folder.  I could then switch to the file view of the project and drag all of the VIs and controls in that class or library to the new desired folder.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(3,241 Views)

Submitted a ticket to NI to clarify if this is the only method. The answer, mostly yes.

 

They said for auto-populating folders you can use the following page for information:

 

Renaming Auto-Populating Folders

 

They also stated that renaming/moving the whole project could be done through File>>Save as... and selecting Duplicate .lvproj file and contents.

 

Hope this helps. 

0 Kudos
Message 3 of 4
(3,189 Views)

@crossrulz wrote:

@Mitch_Peplow wrote:

I'm wondering if a workaround is creating a new folder with the name I want, move the files over to the new folder, move the new folder into the project then finally delete the old empty folder.


That's basically what I have been doing.  I have been refactoring a bunch of libraries lately and what I did was right-click on the class or library from the project view and "rename" it to the desired new folder.  I could then switch to the file view of the project and drag all of the VIs and controls in that class or library to the new desired folder.


Additionally, this makes it SVN-friendly, as then you can repair the move and it will transfer the history to the new files/folders.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(3,173 Views)