2022 Method
Changes 0
M

RevitLinkType.UpdateFromIFC

Description:
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.
Overloads (2):
UpdateFromIFC(Document,ExternalResourceReference,String,Boolean)
public bool UpdateFromIFC(
	Document document,
	ExternalResourceReference resourceReference,
	string revitLinkedFilePath,
	bool recreateLink
)
  • document
    The document that contains Revit link.
  • resourceReference
    An external resource reference describing the source of the IFC file used in creation.
  • String
    revitLinkedFilePath
    The path of the Revit file to create to hold the IFC information. This must be a full path.
  • Boolean
    recreateLink
    If true, the Revit file will be updated based on the information in the IFC file. If false, the existing Revit file will be used.
Return Value bool Returns true if the update succeeded, false otherwise.