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
Syntaxpublic bool AddDXF(
string DXFFileName,
Vector2 Position
)
Public Function AddDXF (
DXFFileName As String,
Position As Vector2
) As Boolean
public:
bool AddDXF(
String^ DXFFileName,
Vector2 Position
)
member AddDXF :
DXFFileName : string *
Position : Vector2 -> bool
METHOD AddDXF(
DXFFileName AS STRING,
Position AS Vector2
) AS LOGIC
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:
BooleanTrue 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