Read Method (IFCFileReadOptions, Int32, Int32)


Reads content from a file of IFC format.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2015

Syntax

C#
public void Read(
	IFCFileReadOptions readOptions,
	out int pNumErrors,
	out int pNumWarnings
)
Visual Basic
Public Sub Read ( _
	readOptions As IFCFileReadOptions, _
	<OutAttribute> ByRef pNumErrors As Integer, _
	<OutAttribute> ByRef pNumWarnings As Integer _
)
Visual C++
public:
void Read(
	IFCFileReadOptions^ readOptions, 
	[OutAttribute] int% pNumErrors, 
	[OutAttribute] int% pNumWarnings
)

Parameters

readOptions
Type: Autodesk.Revit.DB.IFCIFCFileReadOptions
The IFC file read options.
pNumErrors
Type: SystemInt32%
The number of errors reported during the read process. The actual messages will be in the log file.
pNumWarnings
Type: SystemInt32%
The number of warnings reported during the read process. The actual messages will be in the log file.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException Error reading opening model for unzipping. Error reading IFC file.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →