1. A computer-implemented method for creating a geometric model in a computer-aided design (CAD) application executing in a computer, the method comprising: accepting direct graphical manipulation via user interaction creating the geometric model in the CAD application; capturing, as the user interaction is conducted, the direct graphical manipulation, without additional user input, as one or more lines of script code as if the user is writing the script code, wherein the script code is integrated into an environment hosted by the CAD application; displaying the one or more lines of script code; modifying the one or more lines of script code thereby automatically modifying the geometric model; and modifying the geometric model by accepting additional direct graphical manipulation via user interaction with the geometric model, wherein the script code is modified to reflect the modifying.