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

3b3aa3d1 36d7 2b2d 359f 29bb1f345d15

haplokuon edited this page May 6, 2023 · 1 revision

AddFromFile(String, Boolean) Method

netDxf 3.0.0 Library

Adds all linetypes to the list from the definition in a LIN file.

Definition

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

C#

public void AddFromFile(
	string file,
	bool reload
)

VB

Public Sub AddFromFile ( 
	file As String,
	reload As Boolean
)

C++

public:
void AddFromFile(
	String^ file, 
	bool reload
)

F#

member AddFromFile : 
        file : string * 
        reload : bool -> unit 

Parameters

  String
File where the definition is located.
  Boolean
Specifies if the linetype definitions of the file will overwrite the existing ones, in case another with the same name exists in the file.

Remarks

If the file is not found in the specified folder, it will try to find them in the list of supported folders defined in the DxfDocument.
Any text style or shape present in the linetype definition must be previously defined in the DxfDocument, if not an exception will be generated.

See Also

Reference

Linetypes Class
AddFromFile Overload
netDxf.Collections Namespace

Clone this wiki locally