catia
Rust COM bindings and helpers for CATIA V5 on Windows.
Features
- COM bootstrap helpers (
ComApartment) for safe COM initialization. - High-level
CatiaAppwrapper around CATIA V5 COM automation. CatiaApitrait with mock and real implementations for testing.- Examples covering documents, selection, export, and dialogs.
Requirements
- Windows only (
windowscrate, Win32 COM APIs). - For real automation: CATIA V5 installed and registered
ProgID(e.g.CATIA.Application). - For unit/demo: use
--mockto run examples without CATIA.
Quick Start
Add to Cargo.toml:
[]
= "0.1.0"
Create an app and call APIs:
use ;
use ;
Run examples:
Notes
- COM calls mirror CATIA V5 automation (Documents, Selection, ActiveDocument, etc.).
- Mock mode prints simulated COM calls for local testing.
- Export options may vary by document type; adapt as needed.
License
MIT. See LICENSE.txt.