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
Syntaxpublic bool ReadIFC(
string IFCFileName,
bool DisplayAfterRead = true,
int TessellationQuality = 16
)
Public Function ReadIFC (
IFCFileName As String,
Optional DisplayAfterRead As Boolean = true,
Optional TessellationQuality As Integer = 16
) As Boolean
public:
bool ReadIFC(
String^ IFCFileName,
bool DisplayAfterRead = true,
int TessellationQuality = 16
)
member ReadIFC :
IFCFileName : string *
?DisplayAfterRead : bool *
?TessellationQuality : int
(* Defaults:
let _DisplayAfterRead = defaultArg DisplayAfterRead true
let _TessellationQuality = defaultArg TessellationQuality 16
*)
-> bool
METHOD ReadIFC(
IFCFileName AS STRING,
DisplayAfterRead AS LOGIC := TRUE,
TessellationQuality AS LONG := 16
) AS LOGIC
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:
BooleanTrue 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.
ExamplesdxfReaderNETControl1.Rendering = RenderingType.ShadedEdges;
dxfReaderNETControl1.ReadIFC(@"C:\models\building.ifc");
See Also