The virtual displacement equation with visco-elasticity boundary condition is presented, the uniform mathematical expression of visco-elasticity boundary condition is reached. The FEPG(Finite Element Program Generator) system has the capacity of generating finite element computation program directly from virtual displacement equation the paper gets the finite element computation program according to the derived virtual displacement equation via the FEPG system, and the program is examined correctly and validly.