I am subscribing to the EdmCmd_PostLock event in my PDM Addin (C#).
I am attempting to access the file being checked out as below,
file = (IEdmFile5)vault.GetObject(EdmObjectType.EdmObject_File, edmCmdData.mlObjectID1);
but receive an error every time: 'The supplied object ID is not valid.'
I have attempted to access the file with the path as well, but recieve a similar error.
Am i misunderstanding the documentation on how to access the file here?