Developer Information
- Author:GUO
- e-mail: guobbs@live.com
- QQ: 349384061
- date:2024-04-20
What is Genesis2000?
- Genesis2000 is a CAM software in the PCB industry, developed by an Israeli company, Frontline.
- Genesis2000 provides a rich secondary development interface to help us automate CAM operations, one of which is script development support. For details, please refer to the official Genesis2000 script development documentation.
Why provide a Rust crate?
- The script development interface provided by Genesis2000 officially only supports three shell languages: csh, perl, and tcl. Many developers who are not familiar with these shells may have to spend a lot of effort to learn them again.
- Scripts written in languages like csh and perl are in plain text, which cannot meet the confidentiality requirements. If using native compiled languages like Rust, you can protect your source code from being exposed."
How use it?
use
Use cargo to create a new script project, for example, the project name is demo
cargo new --bin demo
Enter the demo project directory from the command line terminal.
cd demo
Add the genesis2000 dependency crate to the demo project, run the following Cargo command in your project directory:
cargo add genesis2000
Open the src/main.rs file with an editor and write code in the following way:
use HashMap;
use ;
Interface Introduction
The public functions are:
VON, VOF, SU_ON, SU_OFF, PAUSE, MOUSE, COM, AUX, and INFO
For other script development assistance, please refer to the official Genesis2000 help document: 0204.pdf.