using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Interop;
[assembly: CommandClass(typeof(AutoCAD_CSharp_plug_in8.MyCommands))]
namespace AutoCAD_CSharp_plug_in8
{
public class MyCommands
{
[CommandMethod("ExpProf")]
public void MyCommand()
{
AcadApplication app = Application.AcadApplication as AcadApplication;
AcadPreferences pref = app.Preferences;
AcadPreferencesProfiles profiles = pref.Profiles;
profiles.ExportProfile(profiles.ActiveProfile, @"C:\Myprofile.arg");
}
}
}