diff options
author | opiopan <opiopan@gmail.com> | 2019-03-30 11:16:13 +0900 |
---|---|---|
committer | opiopan <opiopan@gmail.com> | 2019-03-30 11:16:13 +0900 |
commit | fcd704e1eef9034e2000f55b2918d7df41379408 (patch) | |
tree | 4bc9f8f3f5f8cced53f9f2dfa8f414dfc6466488 /README.md | |
parent | 7e8f90b3724c62f72cf58ad28c11506212f3b706 (diff) | |
download | gerbonara-fcd704e1eef9034e2000f55b2918d7df41379408.tar.gz gerbonara-fcd704e1eef9034e2000f55b2918d7df41379408.tar.bz2 gerbonara-fcd704e1eef9034e2000f55b2918d7df41379408.zip |
add mouse bites generator function
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 39 |
1 files changed, 33 insertions, 6 deletions
@@ -1,9 +1,9 @@ -PCB tools extension +pcb-tools-extension === -PCB tools extension is a Python library to panelize gerber files. -This library is designed based on [PCB tools](https://github.com/curtacircuitos/pcb-tools) which provides cool functionality to handle PCB such as generationg PCB image from gerber files. +pcb-tools-extension is a Python library to panelize gerber files. +This library is designed based on [pcb-tools](https://github.com/curtacircuitos/pcb-tools) which provides cool functionality to handle PCB such as generationg PCB image from gerber files. -PCB tools extension adds following function to PCB tools. +pcb-tools-extension adds following function to pcb-tools. - Rotate PCB data - Write back loded PCB data (original PCB tools does not work completely) @@ -13,7 +13,7 @@ PCB tools extension adds following function to PCB tools. Only RS-274x format and Excellon drill format data can be handled by current version of this library. ## Install -PCB tools extension is not registerd to PyPI repository.<br> +pcb-tools-extension is not registerd to PyPI repository.<br> Please install from GitHub repository as below. ```shell $ pip install git+https://github.com/opiopan/pcb-tools-extension @@ -62,6 +62,8 @@ ctx.dump('panelized-board.txt') ``` ## DXF file translation + +### PCB Outline You can also load a dxf file and handle that as same as RX-274x gerber file.<br> This function is useful to generate outline data of pnanelized PCB boad. @@ -96,8 +98,33 @@ dxf.draw_mode = gerberex.DxfFile.DM_FILL dxf.write('outline.gml') ``` +### Mouse bites + +<img alt="mouse bites" src="https://raw.githubusercontent.com/wiki/opiopan/pcb-tools-extension/images/mousebites.png" width=200 align="right"> + + +If ```DM_MOUSE_BITES``` is specified for ```drawing_mode```, filled circles will arranged along a DXF line object at equal intervals. <br> +DXF file object in this state can be merged to excellon file also. That means you can arrange mouse bites easily. + +```python +import gerberex + +ctx = gerberex.DrillComposition() +drill = gerberex.read('drill.txt') +ctx.merge(drill) + +dxf = gerberex.read('mousebites.dxf') +dxf.draw_mode = gerberex.DxfFile.DM_MOUSE_BITES +dxf.to_metric() +dxf.width = 0.5 +dxf.pitch = 1 +ctx.merge(dxf) + +ctx.dump('merged_drill.txt') +``` + ## Panelized board image Example -This image is generated by original [PCB tools](https://github.com/curtacircuitos/pcb-tools) fucntion. +This image is generated by original [pcb-tools](https://github.com/curtacircuitos/pcb-tools) fucntion. <p align="center"> <img alt="description" src="https://raw.githubusercontent.com/wiki/opiopan/pcb-tools-extension/images/panelized.jpg" width=750> |