The feasibility of fabrication of shape memory polymers (SMPs) was investigated using a customized 3-dimensional (3D) printing technique with an excellent resolution that could be less than 100 microns. The thermorheological effects of SMPs were adjusted by contact and non-contact triggering, which led to the respective excellent shape recoveries of 100% and 99.89%. Thermogravimetric analyses of SMPs resulted in a minor weight loss, thereby revealing good thermal stability at higher temperatures. The viscoelastic properties of SMPs were measured using dynamic mechanical analyses, exhibiting increased viscous and elastic characteristics. Mechanical strength, thermal stability and viscoelastic properties, of the two SMPs were compared [di(ethylene) glycol dimethacrylate (DEGDMA) and poly (ethylene glycol) dimethacrylate (PEGDMA)] to investigate the shape memory behavior. This novel 3D printing technique can be used as a promising method for fabricating smart materials with increased accuracy in a cost-effective manner.