Complete the code to link a 3D model file to a PCB footprint.
footprint.set3DModel('[1]')
The standard 3D model file extension for PCB footprints is .stp.
Complete the code to assign the 3D model path to the footprint.
footprint.[1] = '/models/[2]'
The property to assign the 3D model file path is usually model_path.
Fix the error in the code to correctly associate the 3D model with the footprint.
footprint.attach3DModel([1])The file name must be passed as a string literal with quotes.
Fill both blanks to create a dictionary mapping footprint names to their 3D model files.
model_map = {'[1]': '[2]'}The footprint 'R1' is associated with the resistor 3D model file 'resistor.stp'.
Fill all three blanks to define a function that associates a 3D model file to a footprint.
def associate_3d_model([1], [2]): [3].set3DModel([2])
The function takes a footprint and a model file, then sets the 3D model on the footprint.
