Abstract:Based on the platform of ObjectARX in AutoCAD 2002, the authors used Microsoft Visual C++ 6.0 to exploit a plug-in for generating the magnet profile and transplanting it to AutoCAD 2004 with the help of Microsoft Visual Studio.net. The plug-in only needs the preprocessing of magnet data and files containing corner coordinates of the magnet profile, and selects map scales, vertical axis ratio, map titles and point distance simply; that is, on the basis of presetting, it can directly create profiles that have such related elements as titles, scales, frames, responsible tables, and legends. The generated profile is characterized by elegance and easy operation and can thus reduce the burden of illustrators effectively.