1
Automation Interface, Add-Ins and Tools / Re: Type of lock sets to the locked element
« on: June 19, 2015, 12:33:20 am »
thx, I will try to find information into attributes tables stored in conection with this locked element
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
EA.IDualElement el = Repository.GetElementByID(<Element.Element_ID>);
foreach (EA.IDualConstraint con in el.Constraints)
{
if (con.Name == "0")
{
con.Name = "A";
try
{
con.Update();
}
catch (Exception ex1)
{
MessageBox.Show("My Error" + Environment.NewLine +
"Exception.Message" + Environment.NewLine +
ex1.Message + Environment.NewLine +
"Repository.GetLastError()" + Environment.NewLine +
Repository.GetLastError() + Environment.NewLine +
"");
}
}