On 24/04/2017 at 02:40, xxxxxxxx wrote:
Thanks Andreas for let me know. So I have to rethink my infrastructure or at least to deal with it.
My goal is to have an unique ID for each type of objects. (basicly my uniqueID are 1,2,3,4,5,6,7 and it's used for sort my object independently of the Object Manager)
In my CommandPlugin(who lunch a GeDialog) I list all thoses type of objects. Then I grab the tag. I sort them according to the unique ID. if there is no tag I create one, I append of my already get uniqueID (like that the new one are listed after in my list)
Then basicly my tag is just for storing ListIndex.
I reset it on CopyTo because I don't want to have two time the same index because it will be impossible for me to know which one is the original. So it's why I reset it. Since I reset his bc my Dialog can see his bc is empty so this one is newlly created.
Hope it make more sense.
I chosse tag because it must be hidden to the user. It must be document AND object dependant (if doc change or obj change than data must be reset).