This model is based on ANSYS 15.0. The model calculates the AC loss in a superconducting magnet in the presence of a time-dependent transport current. The superconductor is modeled with Bean model. The parameters and outputs are all in text format, can be easily read and modified. Almost no knowledge beforehand is required. With some experience of using ANSYS ADPL, it can be easily modified to calculate the macro electromagnetic properties of superconductor, superconducting magnet flux penetration, AC loss and critical current. It is helpful for the further study of superconducting power equipment dynamics, AC applications and magnet shielding current effect.