M

ExtendedPropertiesLink.Create

Description:
Creates the ExtendedPropertiesLink in the given document.
public static LinkLoadResult Create(
	Document doc,
	ExternalResourceReference externalReference
)
  • doc
    Document which will gain an ExtendedPropertiesLink.
  • externalReference
    Reference to external information containing extended properties.
Return Value LinkLoadResult Information about the ExtendedPropertiesLink.
  • The server referenced by the ExternalResourceReference does not exist or does not implement IExternalResourceServer. -or- The ExternalResourceReference (externalReference) is not in a format that is supported by its server. -or- The given externalReference does not refer to a server that supports extended properties. -or- The document does not support extended properties links.
  • A non-optional argument was null
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
  • The document has no open transaction.