1 of 1 people found this helpful
I usually "copy" and "paste" the project.
For example, I have a project "test_200109" in my current workspace.
I selected and set the project as "Set as active project"
Then I "right-click" on the project name and select "Copy" in the pop-up menu.
Then I right-clicked the blank space of Worspace Explorer and selected "Paste" in the pop-up menu.
Then a new project named "<original project name>_Copy_01" is pasted in my Workspace Explorer.
Then I right-click the name of "<xx>_Copy_01" and selected "Rename" from the pop-up menu.
After renaming the project, if there is/are extra files to be renamed in the project,
"Optional Rename Files" dialog appears.
Usually I click the "check" icon to select all and select "Rename" button.
Now cloned project is placed in my workspace explorer.
NOTE: In this situation usually opened files of the previous projects are still remain in the work area.
In this sample "schematic" is still left open, but please notice that the tab is in gray color.
I have edited those files of previous projects so many times, so I suggest your to open
a file in the new design and...
right-click the tab of a file from the new project and select "Close all but this"
to prevent accidentally ruin the original project.
Now you are on you own ;-)
I think I understand everything up to the point of “Close all but this” on the schematic.
What happens to the schematic? If you make changes does it apply to the original project also?
If we edit a file with gray tab, we modify the file which belongs to the original project,
but if we edit a file with white tab, which belongs to the current active project,
then it will not affect the original project.
So, to avoid this mistake, which I often do, I added "Close all but this".
BTW, It would be nice, if Cypress provide "Save As" for projects
which does what I wrote above.
I wonder what happened?
If you could not paste, may be you did not "Copy" the original project.
If you would, could you test the below and let me know in which step you have problem?
(1) Select and "Set As Active Project" the original project in the Workspace Explorer.
(2) (May be this is too nervous, but) Unselect the original project once and select the original project.
(I would recommend you to click the "Icon" instead of "name" of the project)
(3) Right-click the mouse button (a pop-up menu should appear)
(4) Select "Copy" in the pop-up menu.
(5) Left-Click the mouse button at blank space of the Workspace Explorer
(6) Right-click the mouse button (a pop-up menu should appear)
(7) There should be "Paste" under "Copy", select "Paste".
(8) A new project named <original_name>_Copy_01 should be inserted in the Workspace.
It would paste project into whatever document was open. I did it several times. Then I closed all the files and it worked. It also worked if only the schematic was open.
Also that it puts the project in the same directory is dangerous. I do the ‘Save As’ of the project and it allows me to move to another directory.
I will keep experimenting but I think I’m close.
> Also that it puts the project in the same directory is dangerous.
> I do the ‘Save As’ of the project and it allows me to move to another directory.
For this, I usually use "Archive Workspace/Project", which will generate a zip file of current project.
Then copy (or move) the zip file and expand it there.
(1) Just like copy/paste, select and set the project active, the invoke the pop-up menu
and select "Archive Workspace/Project..."
(2) Arhiver Dialog appears, usually "Minimal" is enough and select "Archive"
(3) Archive log is shown and if "Open archive in ..." is checked
(4) The Archive folder will be automatically opened.
(In my case, there are many archives, but the newly created one is high-lighted.)
(5) Copy or move the archive to the folder of your choice and expand the zip file
(6) In the expanded folder there is the copied project and
by double clicking the <project>.cyprj, you can invoke PSoC Creator for it.
P.S. BTW, I could not see your attached picture(s).
May be you need to save it as a file first then copy it to the topic.
To be clear.
- Is your goal to create a "perfect" clone of the original project then modify as needed this cloned project and the code/schematic changes are independent of the original project?
- Is your goal to create a "perfect" clone of the original project where certain code files are actually shared between the original and clone-modified projects?
1 of 1 people found this helpful
I do 'Save it" in simpler way:
(1) Select the project name in the Project Explorer panel. (2) File->Save project as.. (Type a new name and hit Enter). (3) Close the workspace: File->Close Workspace. When asked "Save Workspace before closing?", -Answer "NO"! (4) Open newly saved project, File->Open project. Done!
Is your goal to create a "perfect" clone of the original project then modify as needed this cloned project and the code/schematic changes are independent of the original project?
It’s very dangerous. I’ve tried copying and pasting a project but then,.. ~I can’t get back to the original~,.. any other way besides deleting it and reloading it from a backup. You don’t know what it is you’re saving when you exit. If you don’t save, you’re completely hosed, if you save, you’re in the new project and can’t get back the original.
This shouldn’t be that hard. It’s basic. We have products and then we develop new products that benefit from code reuse. The development schedule doesn’t always allow for having to start a completely new project, then cutting and pasting code into the new project. So far, that’s been the safest practice.
I’ve tried it and then there is no way to get back to the original project.
This does create a new project but getting back to the original is the problem.
I’ve tried it both ways, saving and not saving.
The original project remains intact. The only drawback is that all project tabs are getting closed in the new project, but that is hardly an issue.
Alright, I get it. The key was to not save the Original Project.
Thanks for your patience.