GetDocumentDependencies2 virtual components

Hi,

I'm using SW 2008 sp 4.0, and doing some VBA API work using swapp.GetDocumentDependencies2.

I have some assemblies that contain virtual components.  I see it is returning paths for these components similar to "%TEMP%\swx4076\48651\95853.sldprt".  Is there a sure-fire way to know if a reference returned by this API is a virtual component or not?

Some ideas I considered:

  • Use FSO.FileExists on the path.  (Won't work if SW actually creates the file when the assembly is loaded.)
  • Check if the path is a local hard drive.  Not a good assumption, especially if we ever start using PDM.
SolidworksApi macros