03-12-2014 06:23 PM
I'm using LabVIEW 2013 and developing a custom template witch will create a new project that contains auto-populating folders. When the new project is created the directories are replicated to the new location as desired, however the links in the lvproj tree still point back to the location of the source of the template. I want these to be a relative path to the project and not an absolute path.
03-13-2014 11:10 AM
This document should help to sort out this issue for you.
http://www.ni.com/white-paper/14045/en/
03-14-2014 02:17 PM
Thanks Rob, but I have read that page and it does not get into the level of detail that I am debugging.
I have a workaround, but it is not very elegant. I am modifying the text of the .lvproj xml file to correct the paths.
03-14-2014 02:57 PM - edited 03-14-2014 03:02 PM
Jeff,
Don't use Auto-populating folders! at the very least you will need to modify the template script to "Stop Auto-populating "and "Make Auto-populating" as the first and last steps. I DO NOT SUGGEST that you should do this.
For several reasons:
Auto-pop buys you nothing!
Auto-pop is basicly there as an aid to developers just learning how to use projects. By the time you finish a project or two virtual folders are sufficient to organize the project. If you DO have a self imposed style requirement to mimic disk structure and folder structure the files view and show paths option are there to help you move vi's on disk without confounding the project itself
{Edit:} I just re-read "I am modifying the text of the .lvproj xml file to correct the paths."
Go to files view and "move on disk!!!!" Much safer to use the project to move project members (Or you are going to have lots of conflicts when dependancies change..... BE WARNED! and don't ever try to do that to a library ~~~~~~)
03-14-2014 03:56 PM
Unfortunately, auto-populating folders in project templates are not currently supported. I will file a CAR to our documentation team to update the afore-mentioned webpage to mention this.