Share

Application.OpenIFCDocument(String) Method

Opens an IFC document from disk using default options.


Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public Document OpenIFCDocument(
	string fileName
)

Parameters

fileName  String
The IFC file to be opened.

Return Value

Document
The newly created document containing the IFC file.

Exceptions

ExceptionCondition
ArgumentException If 'fileName' is an empty string.
ArgumentNullException If nullptr is passed as 'fileName' -or- A non-optional argument was null
FileArgumentNotFoundException If the file specified by 'fileName' cannot be found.
InvalidOperationException If Revit is missing document templates or if the file cannot be opened.

See Also

Reference

Was this information helpful?