Author Topic: Change Stereotype of a Class, API  (Read 2748 times)

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Change Stereotype of a Class, API
« on: October 17, 2012, 01:26:22 am »
Hello,

Another one surprise from EA. I'm trying change Stereotype of a Class using API or SQL stetement. Nothing happened. My code:

if (element.Type =="Class")
{
element.Stereotype ="NewStereotype";
element.Update();
}
  The Message :"Element Locked" I don't uderstand because I Applied my User Locked.

When I used SQL Query: MyRepository.Execute("Update t_object bla-bla");
It did not do it's job.

What is wrong?

Thanks.