Virtual & Internal reference using DM API

Hi,

Using Document Manager 2015 API, is there a way I can confirm that the referenced part is "Virtual & Internal" to the document?

I can get if the reference is virtual using GetAllExternalReferences4 which provides an array of IsVirtual. But how to cofnirm whether iits internal? In one of the threads it mentions that check for path containing %TEMP%\swx* would be okay.

Is this the only way for confirm for internal virtual parts?

Thanks

regards,

Dhananjay

using DM API 2015 SP01.1;

SolidworksApi macros