LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"How To" copy one library and its contents from one project to another

Any "best practices" when wanting to copy a library and its contents from one project to another? I always end up with a ton of conflicts that take me longer to resolve than if I had just recoded the whole library from scratch in the destination project!

0 Kudos
Message 1 of 8
(4,615 Views)

Maybe the best practice is to have the library exist outside the project so everyone can access it.

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 2 of 8
(4,610 Views)

If you are running into that many confiicts for a single library, you have way too much coupling happening.  Perhaps you did not break down your library enough.


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
0 Kudos
Message 3 of 8
(4,590 Views)

I'm interested in the most efficient way to copy a library from one project to another without having it live outside either one.

Message 4 of 8
(4,589 Views)

The library contains a class (Actor Framework), accessors, and private and public methods and messages defined for the class. It can't be broken down any more than that.

0 Kudos
Message 5 of 8
(4,586 Views)

Billme,

 

The easiest way to do it is to just copy the lvlib to the new location and add it to the project. As long as both projects are not open, there shouldn't be any dependency issues. If both projects are open at the same time, there can be access issues as one project will lock the resources. If you are copying a file structure with the lvlib in it, there can be some issues with relative paths that may be arising. As others have mentioned, it sounds like your file may be too coupled.

Austin
Staff Software Engineer
NI
0 Kudos
Message 6 of 8
(4,532 Views)

This was posted a long time ago. But, for others to reference, the best way to do what you are asking is to open the current library and "save as" -> "copy" -> rename -> select new location. Hope this helps.

0 Kudos
Message 7 of 8
(1,826 Views)

I think the best way is to use it as a library should be used.  As a dependency.  The only reason I could see why you want to copy a library is if it is part of a project and not a dependency.  Now to be clear, it's okay for a library to have its own project, but if it isn't directly related to a project, it should be a dependency.

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 8 of 8
(1,822 Views)