System Requirements
- Operating System: Windows 7 or Windows Server 2008 and above, 64-bit
- Software Requirements: JDK 1.8
Licensing Program Installation
- Install the licensing control program in the “Licensing Control System” folder.
- Open “Virbox User Tool,” click “Create Offline-Bound c2d File,” and send the file to Gstarsoft.
- Gstarsoft will generate licensing files based on the c2d file. Update and activate the license using “Import Offline-Bound d2c File.”
Starting Task Scheduling Program
- Open
apache-zookeeper-3.7.1/conf/zoo.cfgand modify the log path. - Run
apache-zookeeper-3.7.1/bin/zkServer.cmdin the command line to start Zookeeper. Keep the command-line window open. - Run
WebCADDWGTransfer.exeas administrator to ensure Zookeeper starts before the conversion service.
Starting API Port Service
- Create a root directory to store drawing files, such as
D:\WebCADAPI\files, and create two subfolders:cadandSwap. - Open the configuration file
gtfs-win64-en\application.propertiesand modify the paths as needed. - Start the service by double-clicking
start.bator running the following command:java -Xmx1024m -Xms1024m -Xss256k -javaagent:sjt_agent.jar -jar GstarTransformServer-1.0.0.jar.
Starting Configuration and Conversion Program
- Right-click
WebCADDWGTransfer-en/WebCADManager.exeand select “Run as Administrator.” - In “Task Client,” select Zookeeper and add
127.0.0.1:2181to the configuration. - Set paths for data, cache, temp, and swap space, ensuring the correct path format.
- Configure the drawing data converter and ensure the correct path for
WebCADDWGTransfer.exe.
Conversion API Port Scheduling
- Access
http://localhost:7088/docs.htmlin a browser to view API documentation. - Send HTTP POST requests to the port with CAD file streams or file URLs for conversion.
- Debug using the API interface, obtain task IDs, and check conversion results.
HTML5 Integration Procedures
- The CAD drawing displayed in the browser is an ocf file generated from the CAD drawing, which needs to be sent to the front end for analysis and display.
- Supported browsers include Chrome, Firefox, Edge, etc. IE is not supported.
- Sample code must be deployed on a server and cannot upload or display ocf files from a local HTML file.
- Initialize display control:
wrapid: Drawing container DOM ID (required)language: Language setting, options include 'zh'/'en'/'ko' (optional)apiHost: API domain name (optional)
- Open ocf file:
type: Type of rendered data (currently only "ocf" is supported)bufferData: Binary data object in arraybuffer formatfileId: Unique identifier for the current drawing
- Use the layout function to switch layouts, sending requests to retrieve the ocf file for the corresponding layout.
Download DWG FastView Web SDK demo
