46
Automation Interface, Add-Ins and Tools / 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.
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.