I have created a plugin in C++ through which the user can assign attributes(note) to his art objects. I use these attributes assigned by the user to perform other functions. However, in the much probable scenario where a designer copy-pastes a design(or in any way duplicates an attributed artwork), then an extra copy of the attribute exists on the document. Here, my other functionalities fail.
How can I detect/prevent/remove the attribute(note) from the duplicate/extra copy?
Or is there any other way apart from assigning notes to artwork to mark art objects?
I am using CC 2015.3 and CC 2017.
The best way to handle this kind of thing is using Dictionaries and UIDs. Check out the docs.