This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 416
94f2143c 77a8 fc12 0768 81a5fa4f47e9
haplokuon edited this page May 6, 2023
·
1 revision
netDxf 3.0.0 Library
Adds a linetype to the list from the definition in a LIN file.
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
- 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.
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.
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.
Linetypes Class
AddFromFile Overload
netDxf.Collections Namespace