diff options
Diffstat (limited to 'gerberex/common.py')
-rw-r--r-- | gerberex/common.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gerberex/common.py b/gerberex/common.py index 4a85bd4..47bc6b3 100644 --- a/gerberex/common.py +++ b/gerberex/common.py @@ -33,3 +33,8 @@ def loads(data, filename=None, format=None): return ipc356.loads(data, filename=filename) else: raise ParseError('Unable to detect file format') + + +def rectangle(width, height, left=0, bottom=0, units='metric', draw_mode=None, filename=None): + return gerberex.dxf.DxfFile.rectangle( + width, height, left, bottom, units, draw_mode, filename) |