EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => KiCad => Topic started by: NivagSwerdna on August 07, 2020, 11:15:46 am

Title: Managing Versions: KiCad sets of files
Post by: NivagSwerdna on August 07, 2020, 11:15:46 am
This is probably a large topic but simply...

I have a design (OK many designs) which individually have a set of KiCAD files and I put these files in GIT as I go along so for a particular design I have a history of files... so far so good...

but now I need to have Rev 2 of my design and concurrently I need to maintain Rev 1 and in particular in Rev 1 I want to record the bodges I need to apply to get it to work

What's the best way of organising stuff?  Copy into a new directory as Rev2 in the same Repo and run them in parallell?

Just wondered
Title: Re: Managing Versions: KiCad sets of files
Post by: voltsandjolts on August 07, 2020, 11:22:29 am
git-branch
Title: Re: Managing Versions: KiCad sets of files
Post by: NivagSwerdna on August 07, 2020, 12:15:28 pm
git-branch
I need to reorganise to do that... into smaller repos... but that's probably sensible.  Currently I have related designs in one repo... but each design versions seperately.
Title: Re: Managing Versions: KiCad sets of files
Post by: Red Squirrel on August 16, 2020, 04:37:40 pm
I THINK you can just copy the whole folder somewhere else.  At quick glance it does not look like there are any hard coded paths within any files. 
Title: Re: Managing Versions: KiCad sets of files
Post by: Doctorandus_P on August 18, 2020, 11:50:11 pm
If you have project specific libraries, you could have entered their location as either absolute or relative path in

Preferences / Manage Symbol Libraries
Preferences / Manage Footprint Libraries

Both dialogs have 2 tabs, and the right tab is for "Project specific Libraries".

There you can use ${KIPRJMOD} to point to the current location of the active project.

All KiCad's files are human readable ascii.
I've made good use of this with search and replace operations a few times, for example for changing some symbols or footprint references to different libraries.
But as KiCad's own interface is ever improving this is less and less necessary.