diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-03-01 00:06:14 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-03-01 00:06:14 +0800 |
commit | 20a9af279ac2217a39b73903ff94b916a3025be2 (patch) | |
tree | 2d4c6a16733a38941280a79ee274c28466f1b377 /gerber/gerber_statements.py | |
parent | 223a010831f0d9dae4bd6d2e626a603a78eb0b1d (diff) | |
download | gerbonara-20a9af279ac2217a39b73903ff94b916a3025be2.tar.gz gerbonara-20a9af279ac2217a39b73903ff94b916a3025be2.tar.bz2 gerbonara-20a9af279ac2217a39b73903ff94b916a3025be2.zip |
More rendering of AMGroup to statements
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index dcdd90d..aa25d0a 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -93,6 +93,11 @@ class ParamStmt(Statement): class FSParamStmt(ParamStmt): """ FS - Gerber Format Specification Statement """ + + @classmethod + def from_settings(cls, settings): + + return cls('FS', settings.zero_suppression, settings.notation, settings.format) @classmethod def from_dict(cls, stmt_dict): @@ -279,6 +284,11 @@ class ADParamStmt(ParamStmt): return cls('AD', dcode, 'C', ([diameter],)) @classmethod + def obround(cls, dcode, width, height): + '''Create an obrou d aperture definition statement''' + return cls('AD', dcode, 'O', ([width, height],)) + + @classmethod def macro(cls, dcode, name): return cls('AD', dcode, name, '') |