D
¶
pygerber.nodes.d_codes.DNN module contains definition of DNN class.
D
¶
Bases: Node
Base class for all Dxx commands.
is_standalone
class-attribute
instance-attribute
¶
is_standalone: bool = Field(default=True)
Flag indicating if the node is standalone, ie. it is not prefixed with G code with no asterisk.
This is necessary as some legacy Gerber files use redundant G codes to prefix pretty much every D01/D02/D03 command. To make it possible to keep the original layout of the file, we need to know if the D code was directly prefixed by such redundant G code.
Example: