Book a Demo

Author Topic: Classes disapear from PIM after transform to PSM  (Read 3056 times)

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Classes disapear from PIM after transform to PSM
« on: July 26, 2005, 01:18:32 pm »
Hello everyone,

I have a PIM (a rather simple class diagram), which I am transforming into a C# PSM.

Since I changed one of the transformation templates (the  Atrribute template), classes disappear from my diagram (with the associations). After I drag them back on the diagram from the Project View (as "Simple Link") it all looks fine, except that I have the remaining associatons PLUS new ones (so there are doubled and more).

After I delete the redundant associations, I can generate a new PSM, but in that one ALL associations are missing.


Here is what I changed in the template:

I replaced

 
Code: [Select]
type=%qt%%CONVERT_TYPE("C#",attType)%%qt%


with

Code: [Select]
 %if attType == "date"%
 type="DateTime"
 %else%
 type=%qt%%CONVERT_TYPE("C#",attType)%%qt%
 %endIf%


so that the transform creates DateTime datatypes...

Is this a weird bug? I always delete the PSM before generating a new one. I mean, is a forward generation supposed to mess with the original model?

Addon: What is weird is, that I only generated one class (for testing), and other classes disappeared).
« Last Edit: July 26, 2005, 01:22:35 pm by Kaneda »
There are 10 types of people in this world. Those who understand binaries and those who don't...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Classes disapear from PIM after transform to P
« Reply #1 on: July 26, 2005, 03:27:25 pm »
I'd be very surprised to see any classes disappearing from the PIM because of a transformation.  Certainly the changes you made shouldn't make any difference.

From what you've said though, I have a guess of what could be going wrong.  If the diagram for your PSM classes are being added to is open when you do a transformation, it will actually leave that diagram visible at the end.

So, if you only transform one of your PIM classes, the others will no longer be on the current diagram.  Just change back to your PSM diagram and they should be back.

Of course, this is only a guess, I could be wrong.  If I am, then we'd need more details, if possible emailing a model into support would really help.

Simon

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Classes disapear from PIM after transform to P
« Reply #2 on: July 26, 2005, 10:31:54 pm »
thanks for the help.
It will check it out, after I "repaired" the mess I produced.
If it occurs again, I mail it to the support.
There are 10 types of people in this world. Those who understand binaries and those who don't...

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Classes disapear from PIM after transform to P
« Reply #3 on: July 26, 2005, 10:49:10 pm »
well it keeps getting better and better.
As I reopened my diagramm totay, all associations where gone (except the generalizations), and all those classes, which have disappeared before where now twice on the diagramm, with every operation being twice per diagramm. When I deleted one redundant op, both disappeared.

What the hell is wrong with my diagramm? ???   :o ???  :o  ???

All I did was a custom transformation .... :-/

Addon: Well I closed it and opened it again, and !Behold: all doubled operations are back to normal, except those which I deleted, they are gone for good  ;D
« Last Edit: July 26, 2005, 10:51:00 pm by Kaneda »
There are 10 types of people in this world. Those who understand binaries and those who don't...

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Classes disapear from PIM after transform to P
« Reply #4 on: July 27, 2005, 02:13:13 am »
well, the inital problem seems to be a display issue or sth like that.
If I close the project and load it again, all is back to normal.
There are 10 types of people in this world. Those who understand binaries and those who don't...