Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify the Gerber file format version.
PCB Design
gerber_file.set_format_version([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using RS-274D which is outdated.
Confusing Gerber format with other PCB file formats.
✗ Incorrect
The standard Gerber file format version used is RS-274X.
2fill in blank
mediumComplete the code to set the units for the Gerber file to millimeters.
PCB Design
gerber_file.set_units([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using inches instead of millimeters.
Using unsupported units like cm.
✗ Incorrect
Gerber files commonly use mm or inches. Here, millimeters are set with "mm".
3fill in blank
hardFix the error in the code to correctly add a copper layer to the Gerber file.
PCB Design
gerber_file.add_layer([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding solder mask instead of copper layer.
Using drill layer which is for holes.
✗ Incorrect
The copper layer is added by specifying "copper" as the layer type.
4fill in blank
hardFill both blanks to set the aperture size and shape for the Gerber file.
PCB Design
gerber_file.set_aperture([1], [2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing size and shape values.
Using unsupported aperture shapes.
✗ Incorrect
The aperture size is set to 0.25 mm and the shape is "circle".
5fill in blank
hardFill all three blanks to generate the Gerber file with correct filename, format, and precision.
PCB Design
gerber_file.generate(filename=[1], format=[2], precision=[3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong filename or extension.
Confusing format string with other formats.
Setting precision as string instead of number.
✗ Incorrect
The filename is "board_top.gbr", format is "RS-274X", and precision is set to 4 decimal places.
