Hi experts:
I use the following code to modify the cellheadelement's cellname property. it works well in update8 but give a crash in update 9, the statueInt is 32768. any changes or my code's issue, Please help me.
(element as CellHeaderElement).CellName = CellName; StatusInt statusInt= element.ReplaceInModel(element);
Tim,
In my experience with the Connect SDK, you have never been able to make a change to the element before you replace it.
There are two options
1) You replace with a different element
2) Grab the ElementRef before you modify the element, then before calling ReplaceInModel, grab the original element like so:
Element originalElement = Element.GetFromElementRef(_elementRef);StatusInt statusInt= element.ReplaceInModel(originalElement);
Answer Verified By: Robert Hook
I tested the code, it works will . thanks for your help.