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

6fbf2e8d d26d 8148 e328 29c8dbf19178

haplokuon edited this page May 6, 2023 · 1 revision

Load(String, IEnumerable<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,
	IEnumerable<string> supportFolders
)

VB

Public Shared Function Load ( 
	file As String,
	supportFolders As IEnumerable(Of String)
) As DxfDocument

C++

public:
static DxfDocument^ Load(
	String^ file, 
	IEnumerable<String^>^ supportFolders
)

F#

static member Load : 
        file : string * 
        supportFolders : IEnumerable<string> -> DxfDocument 

Parameters

  String
File name.
  IEnumerable(String)
List of the document support folders.

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