Book a Demo

Author Topic: C# Forward Eng problem  (Read 2826 times)

Sylvain

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
C# Forward Eng problem
« on: January 29, 2004, 08:25:25 am »
Hi,

I'm presently evaluating the Corporate trial...

When I make a change to an imported c# class and I press Ctl-G to execute a forward eng. the modification does not appear in Visual Studio even if VS tells me that my .CS file was modified by an external process and I answer Yes to reload the file...

Any idea ??   :'(

Sylvain.

Michael

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: C# Forward Eng problem
« Reply #1 on: January 31, 2004, 09:02:03 am »
According to the EA v3.60 help (Import C# topic), the product does not currently support forward engineering for C#. Sparx also states that support for C# is still under development and will be extended and improved as time goes on.

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: C# Forward Eng problem
« Reply #2 on: January 31, 2004, 09:40:58 am »
Hiya,

I do'nt think EA will write over any existing members in your files, however it will add the new ones that you add to your classes within EA and then forward engineer, you should see whatever new attributes/operations you added, I haven't fully tested this but I have done a reg eng and fwd eng of c# and the results have been outstanding.

To further add, you can customise the code output based on stereotypes and tags, this itself is amazing, you can customise it to suit your coding style :]

I am going to test the rev eng/fwd eng from VS, There is an option within EA that gives a protection mode to fwd engineering.

- Fluxtah

---------------------------------------------

After testing, as far as creation of new attributes/operations, you can reverse engineer a c# project then add new members and forward engineer. VS tells me that the files have been modified, I answer yes and VS reloads the file and the new member appears.

To further add, I am developing a little tool to import the .NET framework as a model, I work with c# and it is my goal to get EA working efficiently for me, on importing my project into a base project containing the prototype framework my tool generates, EA was able to link all the Asscociations, Generalizations and Realizations into my pre-imported .NET framework model so it does show extreme forward/reverse engineering capabilities.

- Fluxtah
« Last Edit: January 31, 2004, 10:08:19 am by fluxtah »