RevitLinkType.UpdateFromIFC
Description:
Updates a Revit link type from an IFC file and loads the linked document.
Updates a Revit link type from an IFC file and loads the linked document.
Remarks:
This function regenerates the input document. While the options argument allows specification of a path type, the input path argument must be a full path. Relative vs. absolute determines how Revit will store the path, but it needs a complete path to find the linked document initially. Note that the IFC file will not be stored directly in the document; it will instead by stored in an intermediate Revit document, whose location is given by revitLinkedFilePath.
This function regenerates the input document. While the options argument allows specification of a path type, the input path argument must be a full path. Relative vs. absolute determines how Revit will store the path, but it needs a complete path to find the linked document initially. Note that the IFC file will not be stored directly in the document; it will instead by stored in an intermediate Revit document, whose location is given by revitLinkedFilePath.
Overloads (2):
UpdateFromIFC(Document,String,String,Boolean)
public bool UpdateFromIFC(
Document document,
string ifcFilePath,
string revitLinkedFilePath,
bool recreateLink
)
-
documentThe document that contains Revit link.
-
StringifcFilePathThe path of the IFC link to load. This must be a full path.
-
StringrevitLinkedFilePathThe path of the Revit file to create to hold the IFC information. This must be a full path.
-
BooleanrecreateLinkIf true, the Revit file will be updated based on the information in the IFC file. If false, the existing Revit file will be used.
-
document is not a project document. -or- The input path "ifcFilePath" does not represent an IFC file. -or- The document is a cloud model.
-
A non-optional argument was null
-
The model cannot be accessed due to lack of access privileges.
-
There is not a valid Revit file at ifcFilePath's location
-
The file is not allowed to access. -or- Revit cannot customize worksets for this model.
-
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.