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
Syntaxpublic bool ReadSTEP(
string STEPFileName,
bool DisplayAfterRead = true,
int CircleSegments = 36
)
Public Function ReadSTEP (
STEPFileName As String,
Optional DisplayAfterRead As Boolean = true,
Optional CircleSegments As Integer = 36
) As Boolean
public:
bool ReadSTEP(
String^ STEPFileName,
bool DisplayAfterRead = true,
int CircleSegments = 36
)
member ReadSTEP :
STEPFileName : string *
?DisplayAfterRead : bool *
?CircleSegments : int
(* Defaults:
let _DisplayAfterRead = defaultArg DisplayAfterRead true
let _CircleSegments = defaultArg CircleSegments 36
*)
-> bool
METHOD ReadSTEP(
STEPFileName AS STRING,
DisplayAfterRead AS LOGIC := TRUE,
CircleSegments AS LONG := 36
) AS LOGIC
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:
BooleanTrue 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).
ExamplesdxfReaderNETControl1.ReadSTEP(@"mySTEPFile.stp");
See Also