Moral cultivation is an important goal of higher education, and the curriculum of ideological and political education is an important way to carry out ideological and political education. The course of engineering drawing, which has a wide audience, is a professional basic course of engineering and is the precursor to educating students. Affected by COVID-19, college teaching has been switched to online teaching. How to carry out high-quality professional courses and ideological and political education in online teaching is an important problem faced by college teachers. This paper is based on the network teaching platform. It constructs rich teaching resources to realize diversified and efficient teaching. It deeply excavates the new elements of ideological and political education in the epidemic situation. These elements are integrated into the teaching process to realize the collaborative education of knowledge and ideological education. Furthermore, it extracts new cases of ideological and political education outside the classroom. This is in combination with major social needs to guide students to establish lofty aspirations. The goals here include solving major national needs, and realizing all-round ideological and political education throughout the entire process. Finally, the work can improve the teaching quality of professional courses, improve students' ideological and political quality, and achieve the trinity of knowledge transfer, ability training, and value guidance.