FDK: Table duplication after cut n' paste
Hi there
I'm having a strange problem when cutting and pasting tables using the FrameMaker Development Kit. Basically, I'm trying to translate FM docs using a client application. The client app deletes all the text in a document, and replaces it with its translated equivalent. Unfortunately, this requires repositioning certain anchors if they are contained within paragraphs, because if an anchor is at the end of a paragraph, the deletion of text will move it to the start of the paragraph, and then when we add translations, the new text will be placed after the anchor. So I cut and paste the anchors programmatically, and for the majority it works perfectly. However, in a couple of documents, when the paste is completed and the file is saved, I reopen the doc to find a table has been duplicated 6 or 7 times consecutively and I'm not sure why - see below:

We calculate the table anchor's new position by keeping track of the length of the new text and any anchors which come before the table anchor. The fact that the first of the multiple anchors is in the right location tells me I'm doing something right, but I need to resolve this issue completely as it causes serious headaches for our customers. Any insight would be much appreciated.
Thanks
Eric
