Beispiel #1
0
 public void OpenHelp_Command()
 {
     try
     {
         string text  = Reg.GetInstallationFolder() + "\\ComputationalCAD_Help.chm";
         IntPtr value = CMD_Help.HtmlHelp((IntPtr)0, text, 1u, 0);
         if (value == IntPtr.Zero)
         {
             Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("No help file available for TCPlugin at " + text);
         }
     }
     catch (System.Exception ex)
     {
         Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("Could not determine TCPlugin installation path:" + Environment.NewLine + ex.Message);
     }
 }
Beispiel #2
0
        private void method_3()
        {
            Editor arg_0F_0 = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
            string suffix   = ".cui";

            if (Reg.Is2010OrHigher())
            {
                suffix = ".cuix";
            }
            this.string_1 = string.Empty;
            this.string_1 = Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("MENUNAME") + suffix;
            if (!File.Exists(this.string_1))
            {
                throw new FileNotFoundException("Main ACAD menu cui file not found: \n" + this.string_1);
            }
            FileInfo fileInfo = new FileInfo(this.string_1);

            this.string_2 = Path.Combine(fileInfo.DirectoryName, "TCPlugin" + suffix);
            string installationFolder = Reg.GetInstallationFolder();

            this.cuiPath = Path.Combine(installationFolder, "TCPlugin" + suffix);
        }