in_image_name
in_image_name
¶
Load Name (LN).¶
Note: The LN command was deprecated in revision I4 from October 2013.
The historic LN command doesn't influence the image in any manner and can safely be
overlooked.
Function of the LN command:
- LN is designed to allocate a name to the following section of the file.
- It was originally conceptualized to serve as a human-readable comment.
- For creating human-readable comments, it's advisable to utilize the standard G04
command.
- The LN command has the flexibility to be executed multiple times within a file.
SPEC: 2023.03 SECTION: 8.1.6
ImageName
¶
Bases: ExtendedCommandToken
Image Name (IN).¶
The IN command is deprecated since revision I4 from October 2013.
The historic IN command gives a name to the image contained in the Gerber file. The name must comply with the syntax rules for a string as described in section 3.4.3. This command can only be used once, at the beginning of the file.
IN has no effect on the image. A reader can ignore this command. The informal information provide by IN can also be put a G04 comment.
See section 8.1.3 of The Gerber Layer Format Specification Revision 2023.03 - https://argmaster.github.io/pygerber/latest/gerber_specification/revision_2023_03.html
Source code in src/pygerber/gerberx3/tokenizer/tokens/in_image_name.py
new
classmethod
¶
Create instance of this class.
Created to be used as callback in ParserElement.set_parse_action().
Source code in src/pygerber/gerberx3/tokenizer/tokens/in_image_name.py
update_drawing_state
¶
Update drawing state.
Source code in src/pygerber/gerberx3/tokenizer/tokens/in_image_name.py
parser2_visit_token
¶
Perform actions on the context implicated by this token.
Source code in src/pygerber/gerberx3/tokenizer/tokens/in_image_name.py
get_gerber_code
¶
Get gerber code represented by this token.