RVTDocs.com

ExternalFileUtils.IsExternalFileReference

Method
Description:
Determines whether the given element represents an external file.
Remarks:

CAD imports are not external file references, as their data is brought fully into Revit. No connection is maintained to the original file.

A link may be an external resource without being an external file.

Syntax
public static bool IsExternalFileReference(
	Document aDoc,
	ElementId elemId
)
Parameters
Parameter Type Description
aDoc Document A Revit Document.
elemId ElementId The element to be checked for an external file reference.
Return Value
Type Description
Boolean True if the given element represents an external file; false otherwise.
Exceptions
Exception Condition
ArgumentException The element elemId does not exist in the document
ArgumentNullException A non-optional argument was null