Click or drag to resize

DXFReaderNETControlAddDXF Method

Imports and merges entities from an external DXF file into the current drawing at a specified position.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public bool AddDXF(
	string DXFFileName,
	Vector2 Position
)

Parameters

DXFFileName
Type: SystemString
The full path to the DXF file to import.
Position
Type: DXFReaderNETVector2
The insertion point (in world coordinates) where the imported entities will be placed.

Return Value

Type: Boolean
True if the DXF file was successfully imported and added to the current drawing; otherwise, false.
Remarks
This method reads entities from an external DXF file and adds them to the current drawing at the specified position. Unlike ReadDXF(String, Boolean), which replaces the current drawing, this method merges the imported content. All imported entities are translated to the specified insertion point.
See Also