Book a Demo

Author Topic: Parameter and Method Notes  (Read 2883 times)

Sorin

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Parameter and Method Notes
« on: April 23, 2009, 10:27:22 pm »
Hi there !

I've noticed that after updating method notes or method parameters notes, the new values are not refreshed only if I am reopening the EAP file

This is my code:

EA.Parameter param = (EA.Parameter)method.GetAt(i);
param.Notes = 'abc';
bool b = param.Update();
method.Parameters.Refresh();
//...
method.Notes = 'cde'
method.Update();

In my app. I am not caching the objects(i.e. Methods or Parameters) so I have to repopulate all the time their values from parents (Elements and Methods).

Did anyone had similar problem ?

Thanks

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Parameter and Method Notes
« Reply #1 on: April 25, 2009, 03:31:31 am »
There are a couple of methods - I think on the Repository object, but check Project if you don't see them - to refresh diagrams and (I think) packages. There is also a reload method for the entire model. Play around with these and you should get the results you need.
No, you can't have it!