Click or drag to resize

DXFReaderNETControlReadIFC Method

Reads a BIM/IFC file and displays its geometry in the control.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public bool ReadIFC(
	string IFCFileName,
	bool DisplayAfterRead = true,
	int TessellationQuality = 16
)

Parameters

IFCFileName
Type: SystemString
Full path of the IFC file to read (.ifc or .ifczip).
DisplayAfterRead (Optional)
Type: SystemBoolean
If true, sets a SE isometric view, refreshes and zooms to extents.
TessellationQuality (Optional)
Type: SystemInt32
Segments used to approximate curved profiles and extrusions (minimum 8). Default 16.

Return Value

Type: Boolean
True if the file was read successfully and at least one geometric entity was produced.
Remarks
The current drawing is replaced (NewDrawing(DxfVersion)). IFC products are tessellated to Mesh (one mesh per product). Layers are created by IFC class (WALL, SLAB, BEAM, …). Windows and curtain-wall glazing are imported semi-transparent so the space behind the glass stays visible. Frame and mullion parts (IfcMember) stay opaque. Named groups are created by building storey (IfcBuildingStorey.Name). Does not change Rendering unless DisplayAfterRead is true and the current mode is wireframe, in which case it switches to ShadedEdges so the tessellated solids are visible. For a solid look you can also set Shaded / ShadedEdges before import. FileName and ReadDXF(String, Boolean) dispatch .ifc / .ifczip to this method. Supported Body geometry: extruded solids (common profiles), mapped items, boolean first-operand, faceted BREP and tessellated face sets.
Examples
dxfReaderNETControl1.Rendering = RenderingType.ShadedEdges;
dxfReaderNETControl1.ReadIFC(@"C:\models\building.ifc");
See Also