summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoropiopan <opiopan@gmail.com>2019-04-03 19:05:20 +0900
committeropiopan <opiopan@gmail.com>2019-04-03 19:05:20 +0900
commitd53293a609a83aa945af6864285b90d36bcbdd69 (patch)
tree321e19777e46fc83e6de5ba3df73c99f371e238f /README.md
parent6b4603af21839c94a33d3804c364ff1b809eb341 (diff)
downloadgerbonara-d53293a609a83aa945af6864285b90d36bcbdd69.tar.gz
gerbonara-d53293a609a83aa945af6864285b90d36bcbdd69.tar.bz2
gerbonara-d53293a609a83aa945af6864285b90d36bcbdd69.zip
add move and rotation capability to DxfFile object
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9a9100b..a2c309d 100644
--- a/README.md
+++ b/README.md
@@ -102,6 +102,15 @@ dxf.draw_mode = gerberex.DxfFile.DM_FILL
dxf.write('outline.gml')
```
+If you want to arrange simple rectangle for PCB outline, ```gerberex.rectangle()``` is better solution. This generate a object representing a rectangle compatible with DXF file object.<br>
+
+```python
+import gerberex
+
+outline = gerberex.rectangle(width=100, height=100, units='metric')
+outline.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">