Click or drag to resize

DXFReaderNETControlReadSTEP Method

Reads a STEP (.stp / .step) file and displays its geometry in the control.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public bool ReadSTEP(
	string STEPFileName,
	bool DisplayAfterRead = true,
	int CircleSegments = 36
)

Parameters

STEPFileName
Type: SystemString
Full path of the STEP file to read.
DisplayAfterRead (Optional)
Type: SystemBoolean
If true, refreshes the view and zooms to extents after import.
CircleSegments (Optional)
Type: SystemInt32
Number of segments used to approximate circular arcs as line segments (minimum 8).

Return Value

Type: Boolean
True if the file was read successfully and geometry was produced.
Remarks
STEP AP214/AP203 edge curves are imported as wireframe entities only: LINE → Line, full CIRCLE → Circle, circular arcs → Polyline in world coordinates. Entities are grouped by STEP product definition name (e.g. Part 1, Part 2).
Examples
dxfReaderNETControl1.ReadSTEP(@"mySTEPFile.stp");
See Also