TransmissionData.SetDesiredReferenceData
Description:
Sets the ExternalFileReference information which Revit should use the next time it opens the document which this TransmissionData belongs to.
Sets the ExternalFileReference information which Revit should use the next time it opens the document which this TransmissionData belongs to.
Remarks:
There must already be a reference associated with the given id for this function to be valid. New references cannot be created in a closed file. See the documentation for a particular reference type to see its creation API.
There must already be a reference associated with the given id for this function to be valid. New references cannot be created in a closed file. See the documentation for a particular reference type to see its creation API.
-
elemIdThe id of the element associated with this reference.
-
pathA ModelPath indicating the location to load the external file reference from.
-
pathTypeA PathType value indicating what type of path the ModelPath is.
-
BooleanshouldLoadTrue if the external file should be loaded the next time Revit opens the document. False if it should be unloaded.
-
elemId does not correspond to an ExternalFileReference contained in this TransmissionData. -or- These inputs will not produce a valid ExternalFileReference.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration