aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md37
-rw-r--r--setup.py2
2 files changed, 32 insertions, 7 deletions
diff --git a/README.md b/README.md
index 6baa2ee..d44593e 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,13 @@ 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>
+Please install from GitHub repository as below.
+```shell
+$ pip install git+https://github.com/opiopan/pcb-tools-extension
+```
+
## How to panelize
Following code is a example to panelize two top metal layer files.
@@ -65,15 +72,33 @@ ctx = gerberex.GerberComposition()
dxf = gerberex.read('outline.dxf')
ctx.merge(dxf)
```
+Circle object, Arc object, Line object and Polyline object are supported. Other kind of objects in DXF file are ignored when translating to gerber data.
+
+You can specify line width (default 0). PCB tools extension will translate DXF primitive shape to RX-274x line or arc sequense using circle aperture with diamater as same as specified line width.<br>
+
+```python
+import gerberex
+
+dxf = gerberex.read('outline.dxf')
+dxf.to_inch()
+dxf.width = 0.004
+dxf.write('outline.gml')
+```
+
+You can also translate DXF closed shape such as circle to RX-274x polygon fill sequence.<br>
+In order to fill closed shape, ```DM_FILL``` has to be set to ```drawing_mode``` property. In this mode, All object except circle and closed polyline will be ignored.<br>
+
+```python
+import gerberex
+
+dxf = gerberex.read('outline.dxf')
+dxf.draw_mode = gerberex.DxfFile.DM_FILL
+dxf.write('outline.gml')
+```
+
## Panelized board image Example
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>
</p>
-
-
-## Installation
-```shell
-$ git clone https://github.com/opiopan/pcb-tools-extension.git
-$ pip install pcb-tools-extension \ No newline at end of file
diff --git a/setup.py b/setup.py
index b9823a4..c81ccd4 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ import os
METADATA = {
'name': 'pcb-tools-extension',
- 'version': 0.1,
+ 'version': 0.1.1,
'author': 'Hiroshi Murayama <opiopan@gmail.com>',
'author_email': "opiopan@gmail.com",
'description': ("Extension for pcb-tools package to panelize gerber files"),