工具箱相关
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

mainCls.cs 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Windows.Forms;
  5. using Autodesk.AutoCAD.Runtime;
  6. using Autodesk.AutoCAD.EditorInput;
  7. using Autodesk.AutoCAD.Geometry;
  8. using Autodesk.AutoCAD.DatabaseServices;
  9. using Autodesk.AutoCAD.ApplicationServices;
  10. namespace T_cad
  11. {
  12. public class mainCls
  13. {
  14. [CommandMethod("tk")]
  15. public void creat()
  16. {
  17. Frame5000 frame = new Frame5000();
  18. frame.Produce();
  19. }
  20. [CommandMethod("ls")]
  21. public void LSTKxiugai()
  22. {
  23. LSTKAllCls lstkallCls = new LSTKAllCls();
  24. //lstkallCls.Function();
  25. lstkallCls.mianfunction();
  26. }
  27. [CommandMethod("xgls")]
  28. public void LSTK1_1000()
  29. {
  30. LSTKAllCls lstkallCls = new LSTKAllCls();
  31. //lstkallCls.Function();
  32. lstkallCls.DWGXiugai();
  33. }
  34. [CommandMethod("tt")]
  35. public void tt()
  36. {
  37. LSTKAllCls lstkallCls = new LSTKAllCls();
  38. //MessageBox.Show("hha");
  39. //lstkallCls.DGWTKfunctionnew();
  40. lstkallCls.DGWTKfunction2020();
  41. MessageBox.Show("OK!");
  42. }
  43. [CommandMethod("dd")]
  44. public void dd()
  45. {
  46. LSTKAllCls lstkallCls = new LSTKAllCls();
  47. //MessageBox.Show("hha");
  48. //lstkallCls.DGWTKfunctionnew();
  49. lstkallCls.InserDOMbatch2021();
  50. MessageBox.Show("OK!");
  51. }
  52. }
  53. }