The company I work for has an open role to work on a programming language for mechanical CAD. The project was originally inspired by sketch-n-sketch, where you can draw/edit in the scene and it updates the code, and vice versa. We're also working on integrating a constraint solver. The GUI, interpreter, and solver are open source. I'll put details in the thread.