Complete the code to assign a footprint to a symbol in the PCB design script.
symbol.setFootprint([1])The method setFootprint requires the footprint name as a string to assign it to the symbol.
Complete the code to retrieve the footprint assigned to a symbol.
current_fp = symbol.[1]()setFootprint instead of getFootprint.The method getFootprint() returns the footprint assigned to the symbol.
Fix the error in the code to correctly assign a footprint to a symbol.
symbol.[1]("Capacitor_SMD:C_0603")
assignFootprint or footprintAssign.The correct method to assign a footprint is setFootprint. Other options are invalid or do not exist.
Fill both blanks to create a dictionary mapping symbols to their footprints.
footprint_map = { [1]: symbol1.[2]() }setFootprint instead of getFootprint.The dictionary key should be the symbol name as a string, e.g., "R1". The value is obtained by calling getFootprint() on the symbol.
Fill all three blanks to assign footprints to multiple symbols in a loop.
for [1] in symbols: [2].[3]("Inductor_SMD:L_0805")
assignFootprint.Use a loop variable like sym to iterate over symbols. Then call setFootprint on each sym to assign the footprint.
