I tried this:
lOk = aaApi_SelectDocument(lngProjectId, lngDocumentID) If lOk < 0 Then ' Si 0, il n'y a pas de document dans le buffer aaApi_ShowLastErrorMessageBox Stop Exit Sub End If lngptrW = aaApi_GetDocumentStringProperty(DOC_PROP_URL_NAME, 0) ' => Return NULL strDocumentURL = VBStringFromPtrW(lngptrW) lngptrW = aaApi_GetDocumentStringProperty(DOC_PROP_IS_URL, 0) ' => Return NULL strDocumentURL = VBStringFromPtrW(lngptrW) lngptrW = aaApi_GetDocumentGuidProperty(DOC_PROP_DOCGUID, 0) strDocumentGUID = VBStringFromPtrW(lngptrW) ' => Return "00000000000000" lngptrW = aaApi_GetDocumentGuidProperty(DOC_PROP_ORIGGUID, 0) strDocumentGUID = VBStringFromPtrW(lngptrW) ' => Return an empty string lngptrW = aaApi_GetDocumentGuidProperty(DOC_PROP_LOCATIONID, 0) strDocumentGUID = VBStringFromPtrW(lngptrW) ' => Return an empty string
And what is the difference between these two notions URN and GUID?
Didier POUZET,
What you see in the Address Bar:pw:\\decide-pwce-us.bentley.com:decide-pwce-us-10\Documents\dww\Test Folder 01\TestTextFile 01
URLpw://decide-pwce-us.bentley.com:decide-pwce-us-10/Documents/dww/Test&space;Folder&space;01/TestTextFile&space;01
URNpw://decide-pwce-us.bentley.com:decide-pwce-us-10/Documents/D{2f6919f8-27bf-4254-b81e-bebdd4e77609}