use altium::SchLib;
fn main() {
let lib = SchLib::open("path/to/mylib.schlib").unwrap();
for meta in lib.component_meta() {
println!(
"libref: {}, description: {}",
meta.libref(),
meta.description()
);
}
let mycomp = lib.get_component("Resistor - standard").unwrap();
mycomp.save_svg("resistor.svg").unwrap();
}