Bird
0
0
PCB Designbi_tool~10 mins

Manufacturing file review in PCB Design - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to load the manufacturing file for review.

PCB Design
file = open('[1]', 'r')
Drag options to blanks, or click blank then click option'
Abom_list.csv
Bdesign_file.pcb
Cmanufacturing_data.txt
Dassembly_instructions.docx
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a BOM or document file instead of the PCB design file.
Using a file extension that is not related to manufacturing data.
2fill in blank
medium

Complete the code to extract the drill layer from the manufacturing file.

PCB Design
drill_layer = manufacturing_file.get_layer('[1]')
Drag options to blanks, or click blank then click option'
Acopper
Bsilkscreen
Cdrill
Dsoldermask
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting copper or silkscreen layers instead of drill.
Using incorrect layer names that cause errors.
3fill in blank
hard

Fix the error in the code to correctly check if the manufacturing file has a soldermask layer.

PCB Design
if '[1]' in manufacturing_file.layers:
Drag options to blanks, or click blank then click option'
Asoldermask
Bsolder_mask
CsolderMask
Dsolder-mask
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores or dashes in the layer name.
Capitalizing parts of the layer name incorrectly.
4fill in blank
hard

Fill both blanks to create a dictionary of layer names and their file extensions for export.

PCB Design
export_files = {'copper': '[1]', 'drill': '[2]'}
Drag options to blanks, or click blank then click option'
A.gbr
B.drl
C.txt
D.pcb
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up file extensions for copper and drill layers.
Using generic or incorrect file extensions.
5fill in blank
hard

Fill all three blanks to filter layers for export that are either copper or soldermask.

PCB Design
export_layers = {layer: data for layer, data in manufacturing_file.layers.items() if (layer [1] 'copper' or layer [2] 'soldermask') and data [3] True}
Drag options to blanks, or click blank then click option'
A==
B!=
Cis
D===
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect operators like != or is for string comparison.
Mixing logical operators without parentheses causing wrong filtering.