How to get UIDRef of the selected document in indesign cs6
How to get UIDRef of the selected document in indesign cs6 from the Isession
How to get UIDRef of the selected document in indesign cs6 from the Isession
UIDRef EXTCODInspectLayoutModel::GetDocumentUIDRef(IPMUnknown* unknown)
{
UIDRef documentUIDRef(nil, kInvalidUID);
do
{
IDataBase* database = ::GetDataBase(unknown);
if (database == nil)
break;
UID documentUID = database->GetRootUID();
if (documentUID == kInvalidUID)
break;
documentUIDRef = UIDRef(database, documentUID);
} while(false);
return documentUIDRef;
}
note: "unknown" is an interface class of the document
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.