This paper studies the design and automatic switching mechanism for a garage.A 3D model of moving follower cylindrical cam is built by using ADAMS kinematics simulation and Pro/E secondary projection curve and trajpar parameters.Meanwhile,Virtual Prototyping of Automatic switching mechanism is established. Cylindrical cam curve design and studies based on virtual prototype simulation,a cylindrical cam curve with better dynamic performance is obtained.