To solve the problems of drawing complicated and repetitive labour when designing CAD drawings for windows and doors, a door and window parameterized design system based on open-source CAD was designed and developed. The system applies the concepts of composition and parameterization to the design of doors and windows. According to the principle of composition, the doors and windows are divided into units, the doors and windows are decomposed into several standard small units to form a standard unit library, and the unit of the unit library is called to be combined into a specific window type. After the window type design is completed, the user according to the specific window type custom parameters, parameterize the window type. Through practical use, the system can greatly improve the designer's design efficiency for new windows and save design time and costs.