Bird
0
0
PCB Designbi_tool~10 mins

Assigning footprints to symbols 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 assign a footprint to a symbol in the PCB design script.

PCB Design
symbol.setFootprint([1])
Drag options to blanks, or click blank then click option'
Afootprint
B"Resistor_SMD:R_0805"
CassignFootprint
DsetSymbol
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a variable name instead of a string.
Using a method name instead of a footprint string.
2fill in blank
medium

Complete the code to retrieve the footprint assigned to a symbol.

PCB Design
current_fp = symbol.[1]()
Drag options to blanks, or click blank then click option'
AgetFootprint
BgetSymbol
CsetFootprint
DassignFootprint
Attempts:
3 left
💡 Hint
Common Mistakes
Using setFootprint instead of getFootprint.
Using unrelated method names.
3fill in blank
hard

Fix the error in the code to correctly assign a footprint to a symbol.

PCB Design
symbol.[1]("Capacitor_SMD:C_0603")
Drag options to blanks, or click blank then click option'
AsetFootprint
BfootprintAssign
CassignFootprint
DgetFootprint
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent methods like assignFootprint or footprintAssign.
Using getter methods instead of setter.
4fill in blank
hard

Fill both blanks to create a dictionary mapping symbols to their footprints.

PCB Design
footprint_map = { [1]: symbol1.[2]() }
Drag options to blanks, or click blank then click option'
A"R1"
BgetFootprint
CsetFootprint
D"C1"
Attempts:
3 left
💡 Hint
Common Mistakes
Using setFootprint instead of getFootprint.
Using variable names instead of string keys.
5fill in blank
hard

Fill all three blanks to assign footprints to multiple symbols in a loop.

PCB Design
for [1] in symbols:
    [2].[3]("Inductor_SMD:L_0805")
Drag options to blanks, or click blank then click option'
Asym
Bsymbol
CsetFootprint
DassignFootprint
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names inside the loop.
Using incorrect method names like assignFootprint.