Book a Demo

Author Topic: How to move the source code folder  (Read 3025 times)

RoyJ

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to move the source code folder
« on: November 19, 2015, 04:53:42 am »
Hi

I have a model that is synchronised with C++ source in a folder called xxx\workspace\proj1, but this folder is now frozen and code development has moved to a copy stored in xxx\workspace\proj2.

What's the best way to make the model sync with the new source in proj2?
I've changed the default source path in code gen options, but that's not affecting existing classes in the model, which each have their own path to their source file. Do I have to change each one individually? There's hundreds! If so, can I do it when I sync (reverse) or do I have to generate (fwd) to get the dialog box to open?

I could reverse engineer the whole of proj2, but then I'd lose all the diagrams.

Really hoping there's an easy way, but my searches haven't turned anything up. I'm using v11.0

Thanks
Roy

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to move the source code folder
« Reply #1 on: November 19, 2015, 08:53:28 am »
Open the local paths dialog.
Create a local path to the existing location.
Apply Path
Change the path to the new location.
*Expand Path.

* This is optional. If you're model is shared by other users who may be using a different path or if you expect to do this again, don't do it.

RoyJ

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to move the source code folder
« Reply #2 on: November 19, 2015, 08:51:17 pm »
Easy. :)
Job done.
Thank you so much.
Roy