工具箱相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Scale.cs 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Autodesk.AutoCAD.ApplicationServices;
  11. namespace CADTools
  12. {
  13. public partial class Scale : Form
  14. {
  15. public Scale()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Scale_Load(object sender, EventArgs e)
  20. {
  21. combox_scalesel.DropDownStyle = ComboBoxStyle.DropDownList;
  22. }
  23. private void btn_ok_Click(object sender, EventArgs e)
  24. {
  25. if (combox_scalesel.Text == "")
  26. {
  27. Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("请选择比例尺");
  28. return;
  29. }
  30. //比例尺
  31. string blctext = combox_scalesel.Text;
  32. int blcindex = blctext.LastIndexOf(':');
  33. string strblc = blctext.Substring(blcindex + 1);
  34. int rade = Convert.ToInt32(strblc);
  35. this.Close();
  36. FeatureOverlap.blc = rade;
  37. FeatureOverlap.move = checkBox1.Checked;
  38. //this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
  39. FeatureOverlap chfeature = new FeatureOverlap();
  40. chfeature.check();
  41. }
  42. }
  43. }