Renaming project

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

 I want to clone a project to use as beginning of a very similar project (and later for new versions of same code).

   

Is the recommended method to "archive the workspace/project" to a new folder and unzip it.

   

Then open the project that was copied and right click and "rename" main project? What about the ".cywdr" file, does this also need renaming?

   

Or are there other areas or namespaces I need to change.

   

From experience with VB.NEt, there was a host of changes to copy a project and get it running again. With PIC, you tended to have to unload the files and re include them otherwise the compiler would compile to the address of the original modules.

   

Thanks

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, that is the way you have to use to clone a project. The good news: Creator 3.1 has got a new function "Save as..."

   

 

   

Bob

0 Likes
JeCo_264681
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

 That method does work but I have used a different one.

   

Open a new project, select Target Device, then save it with the new name. Close Workspace
Open old project and do a Select All on the TopDesign. Edit/copy. Close Workspace.
Open new project. Click on TopDesign screen and do a Edit/Paste. Close Workspace.
Open old project. In main.c do a Edit/Select all, Copy.  Close Workspace.
Open new project. Go to main.c and delete the sample code. Edit/paste.

   

If you have multiple pages in your TopDesign, you have to copy each page separately.

   

Do a Clean & Build.  You probably find that you have to copy device.h into your cydsn folder and try again.

   

One little irritating thing about this method is that your TopDesign is enlarged by about ten percent. I don't know why.

0 Likes