AIUID save in dictionary
AIUIDRef uidref=GetUID(GetArt(range));
sAIDocument->GetDictionary(&dictRef);
if(dictRef) {
AIEntryRef entryref=sAIEntry->FromUID(uidref);
AIDictKey dictkey = sAIDictionary->Key("mykey");
sAIDictionary->Set(dictRef, dictkey, entryref);
}
This is the code I am using to save the uid in dictionary. The code executes. Not sure if it saves uid or not. But illustrator crashes when document is closed. Any idea what is wrong? Thanks in advance.
