AutoXchange 2026 Technical Documentation

AutoXChange DLL

Platforms: Windows and Linux Interface: Java Native Interface (JNI)

Background

The AutoXChange DLL (AXDLL) is a JNI_based interface for calling the base AutoXChange functions. It is packaged as an unmanaged Dynamic Link Library (DLL) on Windows and a Shared Object (so) on Linux. It is available as a 64-bit version on each operating system.

The API is documented in a separate volume:

JNI Interface Documentation

Requirements

Windows

Operating System: Windows 10 or above, Windows Server 2016 or above Compatibility: 64-bit

Linux

Operating System: Linux Kernels using GLIBC++ 2.28 including RHEL/CentOS 8, Debian 10, Ubuntu 20.04 Compatibility: 64-bit

Note: If you need compatibility with pre-GLIBC++ 2.28, please contact us. We can support some of these older Linux Kernels

Operation

AXDLL is called from a Java program. We ship versions for both Java 11 and Java 17, but other versions can be provided upon request. AXDLL can be called separately for each conversion, or as a long running process that converts multiple files.

For a conversion from DWG to DXF:

  1. new AxDllConvert()

  2. InitDLL

  3. Shaker

  4. SetOutputFormat(xx) - Optional
    SetPreview(boolean) - Optional

  5. For each DWG/DXF
    a. SetInputName(…)
    b. SetOutputName(…)
    c. OpenInputFile()
    d. SaveAsDxf(0) - Not used if SetOutputFormat is used
    e. CloseInputFile

  6. UninitDLL - Optional

Shaker must be called and uses a parameter unique to each user.

SetOutputFormat and SetPreview only need to be called once and can come anywhere after Shaker and before OpenInputFile. As they only have to be called once, it is better to put them outside the loop in a multiple-fiile conversion scenario.

SetOutputFormat and SaveAsDxf are mutually exclusive. If SetOutputFormat is used then OpenInputFile will automatically convert to the specified format and SaveAsDxf is not needed. If SetOutputFormat is not called, then OpenInputFile only opens the Input File and does not do a conversion. A subsequent call to SaveAsDxf then makes the same conversion as SetOutputFormat/OpenInputFile would have.

The parameter on SaveAsDxf is the AutoCAD Version. Currently that is 0 to 33. See table below. A value of 0 will use the same Version as in the input file. That is the recommended operation in most cases.

SetPreview controls whether a Preview is added to the output file. The default is to create the Preview.

Output Formats

FormatNumber
DWG1
DXF2
DWF3
PDF4
JS5
SVG6
JPG7
GIF8
PNG9

AutoCAD Versions

ModeValueRelease
kDHL_MC0_00Use Current Release
kDHL_AC1_21
kDHL_AC1_402
kDHL_AC1_503
kDHL_AC2_204
kDHL_AC2_105
kDHL_AC2_216
kDHL_AC2_227
kDHL_10018
kDHL_10029Release 2.5
vAC025kDHL_1002Release 2.5
kDHL_100310Release 2.6
vAC026kDHL_1003Release 2.6
kDHL_100411Release 9
vAC09kDHL_1004Release 9
kDHL_100512
kDHL_100613Release 10
vAC10kDHL_1006Release 10
kDHL_100714
kDHL_100815
kDHL_100916R11 and R12
vAC12kDHL_1009R11 and R12
kDHL_101017
kDHL_101118
kDHL_101219R13
vAC13kDHL_1012R13
kDHL_101320R14 beta
vAC14betakDHL_1013R14 beta
kDHL_101421R14 release
vAC14kDHL_1014R14 release
kDHL_150022R15 (2000) beta
kDHL_101523R15 (2000) release
vAC15kDHL_1015R15 (2000) release
kDHL_1800a24R18 (2004) beta
kDHL_180025R18 (2004) release
vAC18kDHL_1800R18 (2004) release
kDHL_2100a26R21 (2007) beta
kDHL_102127R21 (2007) release
vAC21kDHL_1021R21 (2007) release
kDHL_2400a28R24 (2010) beta
kDHL_102429R24 (2010) release
vAC24kDHL_1024R24 (2010) release
kDHL_2700a30R27 (2013) beta
kDHL_102731R27 (2013) release
vAC27kDHL_1027R27 (2013) release
kDHL_3200a32R32 (2018) beta
kDHL_103233R32 (2018) release
vAC32kDHL_1032R32 (2018) release
Last updated on 19 Aug 2026
Published on 19 Aug 2026