In order to take into account the interaction between mechanical parts and the mechanical system when optimizing complex mechanical products, a cosimulation based collaborative optimization method is presented, the presented method can achieve the topology optimization of mechanical parts and the mechanical system optimization simultaneously. A software framework is given as well, and the effectiveness is verified by an elaborated crank-connecting rod mechanism with a flexible connecting rod.