2 Replies Latest reply on Dec 14, 2014 5:23 PM by user_302397898

    Renaming project

    user_343349849

       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

        • 1. Re: Renaming project
          user_1377889

          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

          • 2. Re: Renaming project
            user_302397898

             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.