Book a Demo

Author Topic: Splitting source into diffrent directories  (Read 3121 times)

tonyhedge

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Splitting source into diffrent directories
« on: July 25, 2014, 10:15:35 pm »
Hi all

I have a model where I use source code engineering to link my model elements and my source.

I know how to use Setting/Local Directories and Paths to change where my source is. But I now want to reorganise my source (for an existing model) into a numvber of different directories, yet still link each element to its corresponding source.

There must be a way, but I'm struggling to find it!

Thanks
Tony
"Interrupts happen!"

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Splitting source into diffrent directories
« Reply #1 on: July 25, 2014, 11:16:38 pm »
Hi,

if you have an algorithm to calculate the path from the package path you can write a script/Addin.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

tonyhedge

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Splitting source into diffrent directories
« Reply #2 on: July 25, 2014, 11:30:20 pm »
Thanks Helmut - I haven't ventured into scripting with EA yet. Maybe this is the time to try!

Thanks again!

[Edited to add: Well, I think I did what you suggested, but the "brute force" way! Exported to XML, edited the paths in the XML, imported back again. Worked for me. Thanks for the hint]
« Last Edit: July 26, 2014, 12:02:45 am by tonyhedge »
"Interrupts happen!"