#!/usr/bin/python import FreeCAD import Part # This should read any type of file FreeCAD.loadFile("test.scad")