Book a Demo

Author Topic: Generate code to a different directory  (Read 3169 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Generate code to a different directory
« on: November 14, 2010, 01:38:13 pm »
I have a model with several dozen classes all of which generate code to a certain directory.  I need to change them all so that they generate code to a different directory.  Is there a way to do that that doesn't involve spending the rest of the month sitting here doing them one by one?  Note that they all use absolute paths, not relative... if there is a way to do relative paths (relative to, say, the path to the database file), I can't find it, and anyway I'd still have the same problem... changing all the absolutes to relatives.

I'm using the standard Access .eap database, and no, I don't have Access 97 so I can't do it that way.

EA version is 7.5.850, on Windows XP SP3.

Thanks for any help...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate code to a different directory
« Reply #1 on: November 15, 2010, 08:42:25 am »
You can do this using local paths.

Open the local paths dialog. (Settings | Local Paths) In the path field enter the path that EA currently thinks your files are at, or part of it.
In the ID field enter something like "Source_Path".
In the type field select your source code language.
Click "Apply Path"
This will substitute the path you entered for the ID in all classes containing that path.
Edit the path field to your new path.
EA will now find the files in their new paths.
If you want to you can now click "Expand Path" and then delete that path.
That will remove the relative paths that were created before, setting them back to absolute paths.