Complete the code to load the 3D model for clearance checking.
model = load_3d_model('[1]')
The 3D model file (usually with .stp extension) is loaded to visualize the PCB for clearance checks.
Complete the code to set the minimum clearance distance for the check.
set_clearance_distance([1])Clearance distances are usually small, like 0.5 mm, to ensure components don't touch.
Fix the error in the code to correctly highlight clearance violations.
highlight_violations(color=[1])The color parameter expects a string with the color name in quotes, like "red".
Fill both blanks to filter components and check clearance only on them.
components = get_components(filter_by=[1], clearance=[2])
Filtering by "power" components and setting clearance to 0.5 mm focuses the check on critical parts.
Fill all three blanks to generate a report with clearance issues and save it.
report = generate_report(components=[1], threshold=[2], format=[3]) save_report(report, 'clearance_issues.[3]')
The report is generated for the components list with a 0.5 mm threshold and saved as a CSV file for easy viewing.
