hi paul,
here is the answer that you provided yourself:
I managed to find a solution:
ImportInstance imp = es.Current as ImportInstance;
if (imp.IsLinked)
{
ExternalFileReference el = ExternalFileUtils.GetExternalFileReference(actdoc, imp.GetTypeId());
if (el != null)
directory = ModelPathUtils.ConvertModelPathToUserVisiblePath(el.GetAbsolutePath());
}
I guess the GetExternalFileReference() isn’t supposed to be exposed in the ImportInstance class like I had tried previously.
cheers,
jeremy
--
Jeremy Tammik
Autodesk Developer Network
http://thebuildingcoder.typepad.com