Ghuangzhou, 14. Sept. 2009
ZWSOFT hat das neue ZRX SDK (Software Development Kit) zur Verfügung gestellt. Entwickler & Programmierer haben nun die Möglichkeit ihre auf ARX basierenden Applikationen auf effektive Weise nach ZWCAD zu portieren. Zur Neukompilierung des ARX - Codes ist meist kein großer Auswand erforderlich. Daraus resultiert, daß mit ein und dem selben Sourcecode mehrere Plattformen unterstützt werden mit dem Ergebnis, das die Applikation auch der wachsenden Gemeinde von ZWCAD - Anwendern zur Verfügung steht.
What's ZRX ?
ZRX, which is compatible with ZWCAD, includes C/C++ Libraries that are the building blocks you can use to develop ZWCAD applications, and extend ZWCAD classes and protocol, and create new commands that operate in the same manner as built-in ZWCAD commands. Meanwhile, ZRXSDK provides the functions that can convert ARX applications to ZRX, and the existed ARX applications can be integrated into ZWCAD easily. To integrate an ARX application, the only thing that you need to do is a small modification and rebuilding.
ZRXSDK (ZRX Software Development Kit) contains three important folders as below:
-
INC: storing all the head files needed by ZRX applications.
-
LIB: storing all the C/C++ Libraries of ZRX.
-
DLL: storing ZRX.DLL file, which defines the ARX conversion function.
The current ZRXSDK provides the following functions:
Basic functions, such as Read and Write of DWG database, command registration and input response , and so on.
- Document Management.
- Reactors.
- Customized Objects.
- Drag function (AcEdJig class).
- Protocol Extensions
How to convert ARX applications to ZRX ?
- System Requirement
- Programming Environment Setting
- Loading ZRX application
System Requirement
-
ObjectARX:ObjectARX2008 and below.
-
ZWCAD2009:The version of 2009.4.30 and above
-
Compiler:Visual Studio 2003
Programming Environment Setting
- Download ZRXSDK
- Open the Object Property setting page.
-
Replace the contents of C/C++ General Additional by arxPort. For example , ..\..\..\ZRXSDK\arxPort
-
Replace the contents of Linker Input Additional Dependencies by ZRX.LIB
-
Add the path of vc7.1 folder of ZRXSDK to the Linker General Additional. For example, ..\..\..\ZRXSDK\lib\vc7.1.
-
Change the extension of the Linker General Output File to DLL
-
Disable the export of acrxGetApiVersion of the Module declaration file(.def format)
Loading ZRX application
- Manually Load Load the DLL file by APPLOAD command after starting ZWCAD everytime.
Automatically Load Find the drxautoload.cfg file in the installing folder of ZWCAD, and add the name of the DLL files you want to load, for example, A.dll, to the file. And when ZWCAD is started, the applications will be loaded automatically.