export_to_ipc2581#

Edb.export_to_ipc2581(ipc_path=None, units='MILLIMETER')[source]#

Create an XML IPC2581 file from the active EDB.

Note

The method works only in CPython because of some limitations on Ironpython in XML parsing and because it’s time-consuming. This method is still being tested and may need further debugging. Any feedback is welcome. Backdrills and custom pads are not supported yet.

Parameters:
ipc_pathstr, optional

Path to the XML IPC2581 file. The default is None, in which case an attempt is made to find the XML IPC2581 file in the same directory as the active EDB. To succeed, the XML IPC2581 file and the active EDT must have the same name. Only the extension differs.

unitsstr, optional

Units of the XML IPC2581 file. Options are "millimeter", "inch", and "micron". The default is "millimeter".

Returns:
bool

True if successful, False if failed.