This repository contains the source code to DOSLib, a library of LISP-callable functions that provide functionality not available in CAD-base LISP interpreters, such as those included with AutoCAD, BricsCAD and ZWCAD.
The following tools are required to build DOSLib:
- Microsoft Visual Studio 2022
- ObjectARX SDK for AutoCAD
- BRX SDK for BricsCAD
- ZRX SDK for ZWCAD (Requires Visual Studio 2017*)
When installing Visual Studio 2022, make sure to install the Visual Studio 2019 (v142) and Visual Studio 2017 (v141) C++ x64/x86 build tools and libraries, including ATL and MFC.
Note, to build DOSLib for version of AutoCAD, BricsCAD and/or ZWCAD earlier than what is listed above may also require an earlier version of Visual Studio. Check the documentation that comes with each of these SDK for their Visual Studio requirement.
The DOSLib build solution looks for ObjectARX, BRXSDK and ZRXSDK installations in this folder structure:
\acad
\arx
\23 - ObjectARX for AutoCAD 2019
\24 - ObjectARX for AutoCAD 2021
\25 - ObjectARX for AutoCAD 2025
\brx
\21 - BRXSDK for BricsCAD Pro V21
\22 - BRXSDK for BricsCAD Pro V22
\23 - BRXSDK for BricsCAD Pro V23
\24 - BRXSDK for BricsCAD Pro V24
\25 - BRXSDK for BricsCAD Pro V25
\zrx
\21 - ZRXSDK for ZWCAD 2021/2022/2023/2024
\25 - ZRXSDK for ZWCAD 2025
- Clone the repository. At a command prompt, enter the following command:
git clone https://github.com/dalefugier/doslib
- Open the
DOSLib.sln
solution file, found in thedoslib\source
folder, in Visual Studio. - Select either the
Release_ARX24
,Release_BRX25
orRelease_ZRX25
solution configuration. - Press F7, or click Build > Build Solution to build the solution.
Note, you can target DOSLib for other versions of AutoCAD, BricsCAD or ZWCAD as long as:
- The correct ObjectARX, BRXSDK or ZRXSDK is installed in above mentioned location.
- The correct Visual Studio platform toolset is installed.
Code licensed under the MIT License.