to_ipc356a#
- Drc.to_ipc356a(file_path: str) None#
Write a complete IPC-D-356A netlist with DRC annotations.
This method exports the full netlist in IPC-D-356A format with all detected violations appended as comment lines. The file can be imported by CAM tools (Valor, Genesis, etc.) for fabrication review.
- Parameters:
- file_path
str Output file path. Overwrites existing files without warning.
- file_path
Notes
File format follows IPC-D-356A specification
Violations are appended as comment lines starting with
CIncludes netlist information (nets, primitives, padstack instances)
Compatible with major CAM software packages
Examples
>>> drc = Drc(edb) >>> violations = drc.check(rules) >>> drc.to_ipc356a("fab_review.ipc")
Export with violations:
>>> rules = Rules().add_min_line_width("trace", "3mil") >>> drc = Drc(edb) >>> drc.check(rules) >>> drc.to_ipc356a("review_with_violations.ipc")