diff options
author | opiopan <opiopan@gmail.com> | 2019-04-03 19:05:20 +0900 |
---|---|---|
committer | opiopan <opiopan@gmail.com> | 2019-04-03 19:05:20 +0900 |
commit | d53293a609a83aa945af6864285b90d36bcbdd69 (patch) | |
tree | 321e19777e46fc83e6de5ba3df73c99f371e238f /README.md | |
parent | 6b4603af21839c94a33d3804c364ff1b809eb341 (diff) | |
download | gerbonara-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.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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"> |