From 0d5e6744d10146dba3310cdf2f1921c086ee74b6 Mon Sep 17 00:00:00 2001 From: opiopan Date: Sun, 24 Mar 2019 11:07:13 +0900 Subject: change README --- README.md | 37 +++++++++++++++++++++++++++++++------ setup.py | 2 +- 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.
+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.
+ +```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.
+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.
+ +```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.

description

- - -## 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 ', 'author_email': "opiopan@gmail.com", 'description': ("Extension for pcb-tools package to panelize gerber files"), -- cgit