Releases: Argmaster/pygerber
Releases · Argmaster/pygerber
Release list
Release candidate 2.0.0rc1
Supported Python versions: 3.8 - 3.11
Tokenizer support for Gerber X3 syntax:
- G04 - Comment - A human readable comment, does not affect the image.
- MO - Mode - Sets the unit to mm or inch.
- FS - Format specification - Sets the coordinate format, e.g. the number of
decimals. - FS (Deprecated modes)
- AD - Aperture define - Defines a template-based aperture, assigns a D code to it.
- AM - Aperture macro - Defines a macro aperture template.
- Dnn (nn≥10) - Sets the current aperture to D code nn.
- D01 - Plot operation - Outside a region statement D01 creates a draw or arc object
with the current aperture. Inside it adds a draw/arc segment to the contour under
construction. The current point is moved to draw/arc end point after the creation
of the draw/arc. - D02 - Move operation - D02 moves the current point to the coordinate in the
command. It does not create an object. - D03 - Flash operation - Creates a flash object with the current aperture. The
current point is moved to the flash point. - G01 - Sets linear/circular mode to linear.
- G02 - Sets linear/circular mode to clockwise circular.
- G03 - Sets linear/circular mode to counterclockwise circular.
- G75 - A G75 must be called before creating the first arc.
- LP - Load polarity - Loads the polarity object transformation parameter.
- LM - Load mirroring - Loads the mirror object transformation parameter.
- LR - Load rotation - Loads the rotation object transformation parameter.
- LS - Load scaling - Loads the scale object transformation parameter.
- G36 - Starts a region statement which creates a region by defining its contours.
- G37 - Ends the region statement.
- AB - Aperture block - Opens a block aperture statement and assigns its aperture
number or closes a block aperture statement. - SR - Step and repeat - Open or closes a step and repeat statement.
- TF - Attribute on file - Set a file attribute.
- TA - Attribute on aperture - Add an aperture attribute to the dictionary or modify
it. - TO - Attribute on object - Add an object attribute to the dictionary or modify it.
- TD - Attribute delete - Delete one or all attributes in the dictionary.
- M02 - End of file.
Tokenizer support for DEPRECATED Gerber features:
- G54 - Select aperture - This historic code optionally precedes an aperture
selection Dnn command. It has no effect. Sometimes used. Deprecated in 2012. - G70 - Set the 'Unit' to inch - These historic codes perform a function handled by
the MO command. See 4.2.1. Sometimes used. Deprecated in 2012. - G71 - Set the 'Unit' to mm - This is part of the historic codes that perform a
function handled by the MO command. - G90 - Set the 'Coordinate format' to 'Absolute notation' - These historic codes
perform a function handled by the FS command. Very rarely used nowadays.
Deprecated in 2012. - G91 - Set the 'Coordinate format' to 'Incremental notation' - Part of the historic
codes handled by the FS command. - G74 - Sets single quadrant mode - Rarely used, and then typically without effect.
Deprecated in 2020. (Spec. 8.1.10) - M00 - Program stop - This historic code has the same effect as M02. Very rarely,
if ever, used nowadays. Deprecated in 2012. - M01 - Optional stop - This historic code has no effect. Very rarely, if ever, used
nowadays. Deprecated in 2012. - IP - Sets the 'Image polarity' graphics state parameter - This command has no
effect in CAD to CAM workflows. Sometimes used, and then usually as %IPPOS*% to
confirm the default and then it then has no effect. Deprecated in 2013. (Spec.
8.1.4) - LN - Loads a name. Has no effect. It is a comment. Sometimes used. Deprecated
in 2013. (Spec. 8.1.6) - Combining G01/G02/G03 and D01 in a single command. (Spec 8.3.1)
- Coordinate Data without Operation Code. (Spec 8.3.2)
- Style Variations in Command Codes. (Spec 8.3.3)
- Format Specification (FS) Options (Trailing Zero Omission, Incremental Notation).
(Spec. 8.2) - Draws and Arcs with Rectangular Apertures (Spec. 8.2.3)
Parser support for Gerber X3 features:
- MO - Mode - Sets the unit to mm or inch.
- FS - Format specification - Sets the coordinate format, e.g. the number of
decimals. - AD - Aperture define - Defines a template-based aperture, assigns a D code to it.
- Define circle.
- Define rectangle.
- Define obround.
- Define polygon.
- Dnn (nn≥10) - Sets the current aperture to D code nn.
- D01 - Plot operation - Outside a region statement D01 creates a draw or arc object
with the current aperture. - D01 - Plot operation - Inside region statement adds a draw/arc segment to the contour under
construction. The current point is moved to draw/arc end point after the creation
of the draw/arc. - D02 - Move operation - D02 moves the current point to the coordinate in the
command. It does not create an object. - D03 - Flash operation - Creates a flash object with the current aperture. The
current point is moved to the flash point. - G01 - Sets linear/circular mode to linear.
- G02 - Sets linear/circular mode to clockwise circular.
- G03 - Sets linear/circular mode to counterclockwise circular.
- LP - Load polarity - Loads the polarity object transformation parameter.
- LM - Load mirroring - Loads the mirror object transformation parameter.
- LR - Load rotation - Loads the rotation object transformation parameter.
- LS - Load scaling - Loads the scale object transformation parameter.
- G36 - Starts a region statement which creates a region by defining its contours.
- G37 - Ends the region statement.
- M02 - End of file.
Parser support for DEPRECATED Gerber features:
- G54 - Select aperture - This historic code optionally precedes an aperture
selection Dnn command. It has no effect. Sometimes used. Deprecated in 2012. - G70 - Set the 'Unit' to inch - These historic codes perform a function handled by
the MO command. See 4.2.1. Sometimes used. Deprecated in 2012. - G71 - Set the 'Unit' to mm - This is part of the historic codes that perform a
function handled by the MO command. - G90 - Set the 'Coordinate format' to 'Absolute notation' - These historic codes
perform a function handled by the FS command. Very rarely used nowadays.
Deprecated in 2012. - G91 - Set the 'Coordinate format' to 'Incremental notation' - Part of the historic
codes handled by the FS command. - G74 - Sets single quadrant mode - Rarely used, and then typically without effect.
Deprecated in 2020. (Spec. 8.1.10) - M00 - Program stop - This historic code has the same effect as M02. Very rarely,
if ever, used nowadays. Deprecated in 2012. - M01 - Optional stop - This historic code has no effect. Very rarely, if ever, used
nowadays. Deprecated in 2012. - IP - Sets the 'Image polarity' graphics state parameter - This command has no
effect in CAD to CAM workflows. Sometimes used, and then usually as %IPPOS*% to
confirm the default and then it then has no effect. Deprecated in 2013. (Spec.
8.1.4) - LN - Loads a name. Has no effect. It is a comment. Sometimes used. Deprecated
in 2013. (Spec. 8.1.6) - Combining G01/G02/G03/G70/G71 and D01 in a single command. (Spec 8.3.1)
- Combining G01/G02/G03/G70/G71 and D02 in a single command.
- Combining G01/G02/G03/G70/G71 and D03 in a single command.
- Coordinate Data without Operation Code. (Spec 8.3.2)
- Style Variations in Command Codes. (Spec 8.3.3)
Rasterized2DBackend Gerber feature support:
- Aperture definition with circle
- Aperture definition with rectangle
- Aperture definition with obround
- Aperture definition with polygon
- Draw flash
- circle aperture
- rectangle aperture
- obround aperture
- polygon aperture
- Draw line
- Draw clockwise arc
- Draw counterclockwise arc
Release v1.1.0
- Added promised documentation for CLI
- Added promised documentation for project specfiles
- Fixed RTD python version requirement building issue
- Updated devlopment pipeline
Full list of changes: v1.0.0...v1.1.0
Release v1.0.0
What's Changed
- Added partial 3D rendering with blender by @Argmaster in #7
- Release 1.0.0 by @Argmaster in #8
Full Changelog: v0.0.1...v1.0.0
PyGerber v0.0.1
General fixes to code style, imports, formatting and documentation.
PyGerber v0.0.0
That's exactly what happened.