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

94f2143c 77a8 fc12 0768 81a5fa4f47e9

haplokuon edited this page May 6, 2023 · 1 revision

AddFromFile(String, String, Boolean) Method

netDxf 3.0.0 Library

Adds a linetype 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 bool AddFromFile(
	string file,
	string linetypeName,
	bool reload
)

VB

Public Function AddFromFile ( 
	file As String,
	linetypeName As String,
	reload As Boolean
) As Boolean

C++

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

F#

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

Parameters

  String
File where the definition is located.
  String
Name of the line type definition to read (ignore case).
  Boolean
Specifies if the linetype definition of the file will overwrite the existing one, in case another with the same name exists in the file.

Return Value

Boolean
True if the linetype has been added from the linetype definitions LIN file; false otherwise. It will return false if the linetype is present in the file and the reload argument is false.

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