attributes2
attributes2
¶
Attribute dictionaries for Gerber X3 parser.
AttributesDictionary
¶
Bases: ImmutableMapping[str, Optional[str]]
Base class for container holding attributes.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
StandardAttributeBase
¶
Bases: FrozenGeneralModel
Class for wrapping standard attribute content.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
PartAttribute
¶
Bases: StandardAttributeBase
The value of the .Part file attribute identifies which part is described. The attribute - if present - must be defined in the header.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
GenerationSoftwareAttribute
¶
Bases: StandardAttributeBase
Usually a Gerber file is part of a PCB project with a sequence of revisions. The purpose of the .ProjectId file attribute is to uniquely identify project and revision.This is especially important to check whether all files belong to the same revision. By its nature, these values can only be defined by the creator of the project and revision. The attribute - if present - must be defined in the header.
The syntax is as follows:
Source code in src\pygerber\gerberx3\parser2\attributes2.py
parse
classmethod
¶
Return original content.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
FileAttributes
¶
Bases: AttributesDictionary
File attributes.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
Part
property
¶
Identifies the part the file represents, e.g. a single PCB.
Standard file attribute.
FileFunction
property
¶
Identifies the file's function in the PCB, e.g. top copper layer.
Standard file attribute.
FilePolarity
property
¶
Positive or Negative. This defines whether the image represents the presence or absence of material.
Standard file attribute.
SameCoordinates
property
¶
All files in a fabrication data set with this attribute use the same coordinates. In other words, they align.
Standard file attribute.
CreationDate
property
¶
Defines the creation date and time of the file.
Standard file attribute.
GenerationSoftware
property
¶
Identifies the software creating the file.
Standard file attribute.
ProjectId
property
¶
Defines project and revisions.
Standard file attribute.
AperFunctionAttribute
¶
Bases: StandardAttributeBase
Function of objects created with the apertures, e.g. SMD pad.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
Function
¶
Bases: Enum
Type of drilling.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
parse
classmethod
¶
Return original content.
ApertureAttributes
¶
Bases: AttributesDictionary
Aperture attributes.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
PAttribute
¶
Bases: StandardAttributeBase
The .P object attribute attaches the reference descriptor and pin number of a component pin to a pad on an outer copper layer or a ComponentPin in a component layer.
The syntax is:
Source code in src\pygerber\gerberx3\parser2\attributes2.py
parse
classmethod
¶
ObjectAttributes
¶
Bases: AttributesDictionary
Object attributes.
Source code in src\pygerber\gerberx3\parser2\attributes2.py
P
property
¶
The pin number (or name) and reference descriptor of a component pad on an outer layer, e.g. IC3,7.