skill
Adom Altium SchLib
Public Made by Adomby adom
Native Rust parser for Altium .SchLib binary symbol libraries — pins + body to KiCad-shaped JSON, native SVG, .kicad_sym export. The symbol counterpart to altium-pcblib.
//! adom-altium-schlib-svg <file.SchLib> — print the native symbol SVG to stdout.
fn main() -> anyhow::Result<()> {
let path = std::env::args().nth(1).ok_or_else(|| anyhow::anyhow!("usage: adom-altium-schlib-svg <file.SchLib>"))?;
let sym = altium_schlib::parse_altium_schlib_path(std::path::Path::new(&path))?;
print!("{}", altium_schlib::render_symbol_svg(&sym));
Ok(())
}