iso-10303

Crates.ioiso-10303
lib.rsiso-10303
version0.5.0
sourcesrc
created_at2020-09-04 06:21:38.424293
updated_at2021-05-28 14:03:18.135954
descriptionA Rust crate for generating STEP reader code.
homepage
repositoryhttps://github.com/J-F-Liu/iso-10303.git
max_upload_size
id284580
size2,469,992
Junfeng Liu (J-F-Liu)

documentation

README

Crates.io Docs

A rust crate for reading STP/STEP CAD files.

STEP (Stadndard for Exchange of Product model) is a standard for describing product data and is formally defined in ISO-10303.

Design

Schema files are written in EXPRESS language. We write an EXPRESS parser to read a schema defination, then generate a Rust code file which contains data type definations, trait impls and a reader to read stp files.

Run example:

cargo run --features=gencode --bin gencode schemas/example.exp examples/family/reader.rs
cargo run --example family

Generate reader code:

cargo run --release --features=gencode --bin gencode schemas/AP214E3_2010.exp parts/src/ap214.rs Ap214
cargo run --release --features=gencode --bin gencode schemas/AP203E2_November_2008.exp parts/src/ap203.rs Ap203
cargo build --workspace

Generate dot graph:

cargo run --release --features=gengraph --bin gengraph schemas/AP214E3_2010.exp graphs/ap214.dot
cargo run --release --features=gengraph --bin gengraph schemas/AP214E3_2010.exp graphs/curve.dot Curve

STEP related resources:

Commit count: 44

cargo fmt