I noticed that when I perform a VBA edit of a textnode inside a nested cell, the application gives the textnode a new ID, but much to my chagrin does NOT inform the database. This means if I’m holding a reference to that element in a variable, I lose the handle as the original textnode no longer exists. Even worse when you use the function “ActiveModelReference.GetLastValidGraphicalElement” it doesn’t see the newly created element. Uggghhhh!!!!
The only solution I found was to iterate through the nested cell and grab the element with the highest ID to regain the handle. To reiterate this error only occurs in nested cells (cell within a cell) not standard cells. Has the bug been reported already?
I have written code to un-nest these cells, but I'm always wary of making unnecessary edits to elements. Have others encountered this?