Click or drag to resize

LinetypesAddFromFile Method (String, String, Boolean)

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Adds a linetype to the list from the definition in a LIN file.

Namespace:  netDxf.Collections
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public bool AddFromFile(
	string file,
	string linetypeName,
	bool reload
)
Request Example View Source

Parameters

file
Type: SystemString
File where the definition is located.
linetypeName
Type: SystemString
Name of the line type definition to read (ignore case).
reload
Type: SystemBoolean
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

Type: 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