- mxcadviewer supports viewing 2D files in formats such as DWG, DXF, and MXWEB, as well as 3D files in formats including STEP, IGES, and STL.
- Supports the recently opened files history viewing function.
- The 2D viewing module supports layer management, allowing users to add, delete, modify, query, and copy annotations. It also supports undo and redo operations for annotations, along with a text search feature.
- The 2D viewing module comes with a variety of commonly used annotation objects, including single-line text, multi-line text, lines, rectangles, ellipses, clouds, and leaders. It also supports multiple general measurement annotation objects, covering aligned dimensioning, linear dimensioning, area dimensioning, coordinate dimensioning, arc length dimensioning, point-to-line distance measurement, continuous measurement, batch measurement, side area calculation, area offset, radius measurement, and angle measurement. In addition, it provides table extraction and text extraction functions.
- The 3D viewing module supports functions such as section planes, part explosion, geometric measurement, display mode switching, and view projection mode switching.
- The entire project is developed in C++, based on the Qt framework and OpenCASCADE technology stack.
Install the following tools in advance:
- Git for Windows
- CMake
- Visual Studio 2017
Prepare the following dependent libraries:
- Qt ≥ 5.14 Note: Qt5 versions only are supported
- OpenCascade 7.7.0
- It is recommended to obtain precompiled third-party libraries from Download Link: 3rdparty.7z
- The mxcadlib library, available for download from Download Link: mx.7z
- Pull the latest source code of
mxcadviewerfromGitHub:git clone https://github.com/mxcad/mxcadviewer-cpp.git cd mxcadviewer-cpp - Read
mxcadviewer-cpp/3rdparty/download_address.txtto download and extract the third-party libraries - Read
mxcadviewer-cpp/mx/code/download_address.txtto download and extract themxcadliblibrary
- Create a new
builddirectory under themxcadviewer-cppdirectory for building the program - It is recommended to use the cmake-gui graphical tool for configuration. Since the third-party libraries and
mxcadliblibrary have been downloaded and extracted in the previous steps, CMake will automatically search for library files in the pathsmxcadviewer-cpp/3rdparty/andmxcadviewer-cpp/mx/code/during initial configuration. Therefore, only the Qt5 path needs to be configured. - After setting the source path and build path in
cmake-gui, click the Configure button, select the generator type as VS2017 x64, and then click Finish

- If prompted that the
Qt5_DIRvariable is not set, configure the corresponding Qt library path forQt5_DIRand click Configure again to complete the configuration

- Click Generate to generate Visual Studio 2017 project files
You can then open the project in Visual Studio 2017 for compilation and execution.



