We use a combination of PDM and non-PDM files, depending on the project.
In order to write VBA macros that work with both, I need a simple way to identify whether a file came from the PDM vault or from a windows directory.
Currently I am querying the "OriginationDate" custom property to see if it exists (this property is not part of our non-PDM templates). However if one copies a file outside of the vault, the custom property is there even though the part file is now native.
Is there a flag or setting that can be queried, and if so how?
For reference, the code I am currently using is:
OrigDate = swModel.GetCustomInfoValue("", "OriginationDate")
If OrigDate = "" Then ...
Any pointers appreciated.