Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on October 17, 2012, 01:26:22 am

Title: Change Stereotype of a Class, API
Post by: zalbina 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.