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

1d54f369 6ef1 afd0 219a f5df610e9d79

haplokuon edited this page May 6, 2023 · 1 revision

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

VB

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

C++

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

F#

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

Parameters

  Stream
Stream.
  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.
On Debug mode it will raise any exception that might occur during the whole process.
The caller will be responsible of closing the stream.

Exceptions

DxfVersionNotSupportedException

See Also

Reference

DxfDocument Class
Load Overload
netDxf Namespace

Clone this wiki locally