Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66970

Is there an "easy" way to change file location links in a project?

$
0
0

I have a project in development on two machines- one 2020, and one 2023. The 2020 version is a slightly older version that I'm retaining as I'm using it with NI tech support to fix a bug, so I can't easily upgrade it to 2023 without changing way too many variables.

 

The 2023 version has a library in it I'd like to move to 2020. Ideally, I'd do a Source Distribution targeted to 2020- but Source Distributions don't have a "target version" option. When I do a "Save for Previous", it creates a TON of extra upstream linked files.

 

I can load this into 2020, but now I need to point all of those links to upstream linked files to my "actual development" 2020 versions.

 

For example, say my project has Car.lvclass inside Car.lvlib, a descendant of Vehicle.lvclass inside Vehicle.lvlib. I need Car.lvlib in my 2020 installation, so I do a Save for Previous, and it generates a new folder containing:

 

--Car Backsave 2020

----Car.lvlib

----Car.lvclass

----Vehicle.lvlib

----Vehicle.lvclass

 

Problem is, my 2020 version already has a Vehicle.lvclass with a bunch of descendant stuff in it, so I need my new Car.lvclass to link to \dev\Vehicle.lvclass, not to Car Backsave 2020\Vehicle.lvclass.

 

I can go in and delete "Car Backsave 2020\Vehicle.lvlib", then load Car.lvlib, and it'll say "Hey I can't find this class- where is it?" and I can point it to \dev\Vehicle.lvlib, and it will recompile everything, but that feels very "brute force" and I've had issues in the past with things getting screwed up when that happens.

 

Trying a right click -> Replace With gives me a warning since the old files and the new ones have the same name. Trying to rename the old ones and use "Replace with" also seems to cause everything to explode.

 

Is there a way to say "I want to use this file, not this file" other than deleting the old one and letting it prompt you?

 

(I should add, my real use case has around 20 classes/libraries/etc so it's a real nightmare to change linking one piece at a time, as then it'll start linking part of the old files and part of the new files.)


Viewing all articles
Browse latest Browse all 66970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>