Cloning a project

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

cross mob
HuEl_264296
Level 5
Level 5
First like given 25 sign-ins First solution authored

PSoC Creator contains a mechanism for cloning the Example Projects, indeed it's the only way to open them really because they're write protected.

   

 

   

But is there a way to clone one of my own projects?  I could just take a copy of the project folder, but then all of the files and folders have the same name. Ideally the cloning process would automatically rename all of the files and folders to match the name of the new project.

   

 

   

Many thanks - Hugo

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

I would suggest you to use the "Create Workspace Bundle" feature which creates an archive of a project. This archive can be copied (expanded) into a new folder and then you may start renaming project, workspace, whatever you want.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might be of use -

   

 

   

http://www.cypress.com/?id=4&rID=39736

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 This is something I would think *everyone* would find a need for, namely a "save as" option, so you could incrementally build a project, get some of it working, save that as a new project, etc.  I found the following solution with a web search, and can report that it works "as advertised".  I made a little text file of the instructions, which I pop up as needed, but a "save as" option in V2.3(?) would sure be much appreciated!  Note that going the "archive" route is NOT the same thing!

   

http://www.psocdeveloper.com/forums/viewtopic.php?f=48&t=7384

   

Here are the steps, as reported by jomalogil on Sat Feb 05, 2011 3:57 am

a) open the workspace where is the original project
b) right click over project and select copy.
c) close workspace (File menu)
d) open (create) a new project, but select Others-> empty workspace
e) write the name of the "clone" project
f) right click over workspace and select paste.
g) rename the project.
h) select different PN if necessary
 

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

I always use a different way to "clone" a project.

   

As suggested in the link Dana supplied I use "Create Workspace bundle", choosing the minimal zipped version. Then I expand the archive into a new folder and rename workspace / project if required. Even when changing the computer where Creator runs on I do not get any errors.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I agree that a "Save as..." menu choice should be added. Such a file maintenance option is standard on practically every piece of PC and Mac software that deals with files.

   

-George

0 Likes
Anonymous
Not applicable

Hi,

   

I'using PSoC 4.0 Update 1 (4.0.0.432)  (12/20/2016).

   

My problem when doing "Create Workspace Bundle.." is that the created Zip file does not include all *.c and *.h source files I have in the original project.

   

I have an old project that was made in Creator 3.0. Then I updated Creator to 4.0 release, so I've created a new empty project in Creator 4.0. Next, I've copied some source files from old browse project to new browse project and I've done "Add>Existing Item..." for including them to new project in Creator 4.0. After that I create some new source files to complet the my project. Compile and all is right.

   

Now I want to clone my project so I do "Create Workspace Bundle.." in my creator 4.0 project, and select "Complete". When I open the Zip generated file I can see some source files don't exist. I've noticed that files added as existing they aren't appear but files Added as new do. Which is the reason ? 

   

Thanks,

   

Asier.

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

Did you try the option "Bundle"

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Yes. With Bundle they are included but not in the same folder that they was in the original project.

   

They must be all of them in "..\project_name.cydsn" folder but if we see at zip file they are alocated out of cydsn folder with project_name.cywrk file. In the other hand the new source files, that were added as new in Creator 4.0 project, appears correctly in cydsn folder.

   

It really is not a problem because I copy the files to the correct site and fixed, but at least I find it strange and generates mistrust when it comes to backing up projects.

   

Asier.

0 Likes
Anonymous
Not applicable

Finally, I opt for creating all source files as new en PSoC creator 4 and copy source text from old files to new ones. This way all source files are included in zip bundle file into their folders.

   

Asier.

0 Likes