Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

41850fe8 2e77 29ab 995d 39cc8ac54fb9

haplokuon edited this page May 6, 2023 · 1 revision

Load(String) Method

netDxf 3.0.0 Library

Loads a DXF file.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static DxfDocument Load(
	string file
)

VB

Public Shared Function Load ( 
	file As String
) As DxfDocument

C++

public:
static DxfDocument^ Load(
	String^ file
)

F#

static member Load : 
        file : string -> DxfDocument 

Parameters

  String
File name.

Return Value

DxfDocument
Returns a DxfDocument. It will return null if the file has not been able to load.

Remarks

Loading DXF files prior to AutoCad 2000 is not supported.
The Load method will still raise an exception if they are unable to create the FileStream.
On Debug mode it will raise any exception that might occur during the whole process.

Exceptions

DxfVersionNotSupportedException

See Also

Reference

DxfDocument Class
Load Overload
netDxf Namespace

Clone this wiki locally