Book a Demo

Author Topic: Changing source file target  (Read 2731 times)

danS

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Changing source file target
« on: May 12, 2010, 02:14:10 am »
I have been trying to synchronise a project that has several developers working against a shared model.

It is also a little confused by different feature branches under Subversion.

The model was initially generated from legacy source code and new sections are being designed using the existing classes.

I have set up the Local Paths but I have discovered that some of the source file names have been changed, particularly .h changed to .hpp
I can change the name of an individual target by using the save option on the generate source dialogue. Is there a way to do this for more than one file?

thanks

dan  

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Changing source file target
« Reply #1 on: May 12, 2010, 03:31:17 pm »
You can probably do so using the API.
I seem to remember a property on the element that stores the filename.
If that fails you could also update the values in the database directly.

Geert

danS

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Changing source file target
« Reply #2 on: May 13, 2010, 01:54:27 am »
I have been slowly working through changing the source target files. Is there any way to do it recursively so all the C++ nested classes get set to the same location?

Also, when performing the import to update the model, is there an option to stop the import dialogue closing when it has completed? or of sending the output to a file?

thanks

dan