Book a Demo

Author Topic: Change of sourcecode location  (Read 4272 times)

Alex Wahl

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Change of sourcecode location
« on: October 31, 2012, 08:18:13 pm »
Hi everyone,

I use the "code generation" and the "synchronize with sourcecode" features of EA.  First i design my classes with ea, then i generate the
basic source code (C#) with EA. At this moment EA seems to save the information where the source file of the class can be found. Now i can do coding the logic into the class with visualstudio and synchronize differences to EA, this works fine.
My problem occurs when my sourcecode changes location. I found no way to tell EA where the new sourcecode location is. I can reimport the new directory but then i loose all my nice diagrams.. :-[ I hope someone can help me with this issue.
Programm version os EA is 9.3.931

Greetings,
Alex

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Change of sourcecode location
« Reply #1 on: October 31, 2012, 08:46:58 pm »
Maybe you can use local paths (Settings) to solve this problem?

q.

Alex Wahl

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Change of sourcecode location
« Reply #2 on: October 31, 2012, 08:59:26 pm »
Thanks for your reply!
I never used the Path settings option, but i figured it out and created a path to my source directory and named it pathSpurce and set the type to c#.
Now, i don't now how to tell EA to gernate my code using the path settings, EA only shows me the Windows file open dialog.
Do you have an idea how to use the path for source code genration?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Change of sourcecode location
« Reply #3 on: October 31, 2012, 10:19:35 pm »
Not really. Too along ago. I remember there's an apply path and a vice versa operation. The first changes the %localpath% string to the according setting and the second will do it vice versa.

You may wait a day for responses from code gen power users.

q.
« Last Edit: October 31, 2012, 10:19:57 pm by qwerty »

Alex Wahl

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Change of sourcecode location
« Reply #4 on: November 27, 2012, 08:39:05 pm »
Still not solved, maybe somewone got  an idea?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Change of sourcecode location
« Reply #5 on: November 28, 2012, 08:29:35 am »
Local paths is the way to do it.

Create a new local path with the old source location (that EA classes are currently pointing to.)
Click 'Apply Path'
Change the path associated with that local path to the new path (where the files are now located.)
Click 'Save'

At that point everything will be relinked. If you don't want to see the path in your model, you can click 'Expand Path' to remove it.