tx
2025-04-11 e8260697137f503aa0170b7a36170fd7168e9b80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
 
namespace DPumpHydr.WinFrmUI.Volute
{
    public partial class MainViewPage
    {
        # region 控件声明
        private System.Windows.Forms.RibbonTab ribbonTab视图;
        private System.Windows.Forms.RibbonTab ribbonTab编辑;
 
        private System.Windows.Forms.RibbonPanel ribbonPanel视图;
        private System.Windows.Forms.RibbonPanel ribbonPanel网格;
        private System.Windows.Forms.RibbonPanel ribbonPanel变焦;
        private System.Windows.Forms.RibbonPanel ribbonPanel模式;
        private System.Windows.Forms.RibbonPanel ribbonPanel图层;
        private System.Windows.Forms.RibbonPanel ribbonPanel操作步骤;
        private System.Windows.Forms.RibbonPanel ribbonPanel面板显示;
        private System.Windows.Forms.RibbonPanel ribbonPanel数据导出;
        private System.Windows.Forms.RibbonPanel ribbonPanel数据导入;
        private System.Windows.Forms.RibbonPanel ribbonPanel组件显示;
        
        private System.Windows.Forms.RibbonButton RBtn左视图;
        private System.Windows.Forms.RibbonButton RBtn显示网格;
        private System.Windows.Forms.RibbonButton RBtn方形网格;
        private System.Windows.Forms.RibbonButton RBtn圆形网格;
        private System.Windows.Forms.RibbonButton RBtn步进;
        private System.Windows.Forms.RibbonButton RBtn步进1mm;
        private System.Windows.Forms.RibbonButton RBtn步进2mm;
        private System.Windows.Forms.RibbonButton RBtn步进3mm;
        private System.Windows.Forms.RibbonButton RBtn步进5mm;
        private System.Windows.Forms.RibbonButton RBtn步进10mm;
        private System.Windows.Forms.RibbonButton RBtn旋转;
        private System.Windows.Forms.RibbonButton RBtn30度;
        private System.Windows.Forms.RibbonButton RBtn60度;
        private System.Windows.Forms.RibbonButton RBtn90度;
        private System.Windows.Forms.RibbonButton RBtn180度;
        private System.Windows.Forms.RibbonButton RBtn分区;
        private System.Windows.Forms.RibbonButton RBtn3分区;
        private System.Windows.Forms.RibbonButton RBtn5分区;
        private System.Windows.Forms.RibbonButton RBtn8分区;
        private System.Windows.Forms.RibbonButton RBtn12分区;
        private System.Windows.Forms.RibbonButton RBtn右视图;
        private System.Windows.Forms.RibbonButton RBtn俯视图;
        private System.Windows.Forms.RibbonButton RBtn仰视图;
        private System.Windows.Forms.RibbonButton RBtn正视图;
        private System.Windows.Forms.RibbonButton RBtn后视图;
        private System.Windows.Forms.RibbonButton RBtn全部缩放;
        private System.Windows.Forms.RibbonButton RBtn缩放选中;
        private System.Windows.Forms.RibbonButton RBtn放大;
        private System.Windows.Forms.RibbonButton RBtn缩小;
        private System.Windows.Forms.RibbonButton RBtn渲染模式;
        private System.Windows.Forms.RibbonButton RBtn实体着色模式;
        private System.Windows.Forms.RibbonButton RBtn绘画模式;
        private System.Windows.Forms.RibbonButton RBtn光线追踪模式;
     
        private System.Windows.Forms.RibbonButton RBtn后退;
        private System.Windows.Forms.RibbonButton Rbtn前进;
        private System.Windows.Forms.RibbonButton Rbtn上一步;
        private System.Windows.Forms.RibbonButton Rbtn下一步;
 
        private System.Windows.Forms.RibbonButton RBtnMenu保存;
 
 
        private System.Windows.Forms.RibbonButton RBtnFile打开;
        private System.Windows.Forms.RibbonButton RBtnFile保存; 
        private System.Windows.Forms.RibbonButton RBtnFile选项;
        private System.Windows.Forms.RibbonButton Rbtn图层编辑;
        private System.Windows.Forms.RibbonButton Rbtn所有实体;
        private System.Windows.Forms.RibbonButton Rbtn选择全部;
        private System.Windows.Forms.RibbonButton Rbtn锁定;
        private System.Windows.Forms.RibbonButton Rbtn隔离;
        private System.Windows.Forms.RibbonButton Rbtn显示;
        private System.Windows.Forms.RibbonButton Rbtn特性;
      
        private System.Windows.Forms.RibbonButton Rbtn完成;
 
        private System.Windows.Forms.RibbonCheckBox RbtnChk步骤面板;
        private System.Windows.Forms.RibbonCheckBox RbtnChk图层面板;
        private System.Windows.Forms.RibbonCheckBox RbtnChk日志面板; 
        private System.Windows.Forms.RibbonCheckBox RbtnChk参数面板;
 
        private System.Windows.Forms.RibbonCheckBox RbtnChk截面18;
        private System.Windows.Forms.RibbonCheckBox RbtnChk标注;
 
        private System.Windows.Forms.RibbonButton Rbtn数据导出XML;
        private System.Windows.Forms.RibbonButton Rbtn数据导入XML;
        private System.Windows.Forms.RibbonButton Rbtn数据导出STP;
        private System.Windows.Forms.RibbonButton Rbtn数据导出IGS;
        private System.Windows.Forms.RibbonComboBox RBox图层;
        private System.Windows.Forms.RibbonTextBox ribbonTextBox步进值;
        private System.Windows.Forms.RibbonTextBox ribbonTextBox旋转值;
        private System.Windows.Forms.RibbonTextBox ribbonTextBox分区数量; 
        private System.Windows.Forms.RibbonItemGroup RGroup大图标;
        private System.Windows.Forms.RibbonItemGroup RGroup下拉框;
        private System.Windows.Forms.RibbonItemGroup RGroup小图标;
 
        #endregion
 
 
        /// <summary>
        /// 初始化 RibbonForm
        /// </summary>
        private void InitialRibbonForm()
        {
            bool isButtonMoreVisible = false;
 
 
            ribbonForm.OrbDropDown.Size = new System.Drawing.Size(160, 474);
            ribbonForm.OrbDropDown.TabIndex = 0;
            ribbonForm.OrbStyle = RibbonOrbStyle.Office_2013;
            ribbonForm.OrbText = "文件";
  
            ribbonTab视图 = new System.Windows.Forms.RibbonTab();
            ribbonTab视图.Name = "ribbonTab视图";
            ribbonTab视图.Text = "视图";
 
            ribbonTab编辑 = new System.Windows.Forms.RibbonTab();
            ribbonTab编辑.Name = "ribbonTab编辑";
            ribbonTab编辑.Text = "编辑";
 
 
           
            #region File
 
            RBtnFile打开 = new System.Windows.Forms.RibbonButton();
            var RBtnFileimage打开 = "open32.png";
            RBtnFile打开.SmallImage = GlobalResource.BuildImage(RBtnFileimage打开, 40, 40);
            RBtnFile打开.Name = "RBtnFile打开";
            RBtnFile打开.Text = "打开";
 
            RBtnFile保存 = new System.Windows.Forms.RibbonButton();
            var RBtnFileimage保存 = "save32.png";
            RBtnFile保存.SmallImage = GlobalResource.BuildImage(RBtnFileimage保存, 40, 40);
            RBtnFile保存.Name = "RBtnFile保存";
            RBtnFile保存.Text = "保存";
 
 
 
            RBtnFile选项 = new System.Windows.Forms.RibbonButton(); 
            RBtnFile选项.SmallImage = GlobalResource.BuildImage("select16.png", 40, 40);
            RBtnFile选项.Name = "RBtnFile选项";
            RBtnFile选项.Text = "选项";
            #endregion
 
           
            #region 视图
            ribbonPanel视图 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel视图.Text = "视图";
            ribbonPanel视图.Name = "ribbonPanel视图";
            ribbonPanel视图.ButtonMoreVisible = isButtonMoreVisible;
 
            //左视图按钮
            RBtn左视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn左视图.Image = GlobalResource.BuildImage("View-Left.png", 40, 40);
            RBtn左视图.Name = "RBtn左视图";
            RBtn左视图.Text = "左视图";
            RBtn左视图.Click+=(sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.LEFT);
            };
            ////右视图按钮
            RBtn右视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn右视图.Image = GlobalResource.BuildImage("View-Right.png", 40, 40);
            RBtn右视图.Name = "RBtn右视图";
            RBtn右视图.Text = "右视图";
            RBtn右视图.Click += (sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.RIGHT);
            };
            ////俯视图按钮
            RBtn俯视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn俯视图.Image = GlobalResource.BuildImage("View-Top.png", 40, 40);
            RBtn俯视图.Name = "RBtn俯视图";
            RBtn俯视图.Text = "俯视图";
            RBtn俯视图.Click += (sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.TOP);
            };
            ////仰视图按钮
            RBtn仰视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn仰视图.Image = GlobalResource.BuildImage("View-Bottom.png", 40, 40);
            RBtn仰视图.Name = "RBtn仰视图";
            RBtn仰视图.Text = "仰视图";
            RBtn仰视图.Click += (sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.BOTTOM);
            };
            ////正视图按钮
            RBtn正视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn正视图.Image = GlobalResource.BuildImage("View-Front.png", 40, 40);
            RBtn正视图.Name = "RBtn正视图";
            RBtn正视图.Text = "正视图";
            RBtn仰视图.Click += (sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.FRONT);
            };
            ////后视图按钮
            RBtn后视图 = new System.Windows.Forms.RibbonButton(); 
            RBtn后视图.Image = GlobalResource.BuildImage("View-Back.png", 40, 40);
            RBtn后视图.Name = "RBtn后视图";
            RBtn后视图.Text = "后视图";
            RBtn后视图.Click += (sender, e) =>
            {
                this._occDesign3dCtrl.SetViewDirect(Model.eViewDirect.BACK);
            };
 
 
 
            #endregion
 
           
            #region 变焦
            ribbonPanel变焦 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel变焦.Text = "变焦";
            ribbonPanel变焦.Name = "ribbonPanel变焦";
            ribbonPanel变焦.ButtonMoreVisible = isButtonMoreVisible;
 
            ////全部缩放按钮
            RBtn全部缩放 = new System.Windows.Forms.RibbonButton();
            var RBtnimage全部缩放 = "Zoom-All.png";
            RBtn全部缩放.Image = GlobalResource.BuildImage(RBtnimage全部缩放, 40, 40);
            RBtn全部缩放.Name = "RBtn全部缩放";
            RBtn全部缩放.Text = "全部缩放";
 
            ////缩放选中按钮
            RBtn缩放选中 = new System.Windows.Forms.RibbonButton();
            var RBtnimage缩放选中 = "Zoom-Selection.png";
            RBtn缩放选中.Image = GlobalResource.BuildImage(RBtnimage缩放选中, 40, 40);
            RBtn缩放选中.Name = "RBtn缩放选中";
            RBtn缩放选中.Text = "缩放选中";
 
            ////放大按钮
            RBtn放大 = new System.Windows.Forms.RibbonButton();
            var RBtnimage放大 = "Zoom-In.png";
            RBtn放大.Image = GlobalResource.BuildImage(RBtnimage放大, 40, 40);
            RBtn放大.Name = "RBtn放大";
            RBtn放大.Text = "放大";
 
            ////缩小按钮
            RBtn缩小 = new System.Windows.Forms.RibbonButton();
            var RBtnimage缩小 = "Zoom-Out.png";
            RBtn缩小.Image = GlobalResource.BuildImage(RBtnimage缩小, 40, 40);
            RBtn缩小.Name = "RBtn缩小";
            RBtn缩小.Text = "缩小";
 
 
 
            #endregion
 
            
            #region 网格
            ribbonPanel网格 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel网格.Text = "网格";
            ribbonPanel网格.Name = "ribbonPanel网格";
            ribbonPanel网格.ButtonMoreVisible = isButtonMoreVisible;
 
            ////显示网格按钮
            #region
            RBtn显示网格 = new System.Windows.Forms.RibbonButton();
            var RBtnimage显示网格 = "Grid-RectCenter.png";
            RBtn显示网格.Image = GlobalResource.BuildImage(RBtnimage显示网格, 40, 40);
            RBtn显示网格.MinSizeMode = RibbonElementSizeMode.Large;
            RBtn显示网格.Name = "RBtn显示网格";
            RBtn显示网格.Style = RibbonButtonStyle.SplitDropDown;
            RBtn显示网格.Text = "显示网格";
            RBtn显示网格.CheckOnClick = true;
 
            //////显示网格下拉菜单
            RBtn方形网格 = new System.Windows.Forms.RibbonButton();
            var RBtnimage方形网格= "Grid-Rect.png";
            RBtn方形网格.SmallImage = GlobalResource.BuildImage(RBtnimage方形网格, 20, 20);
            RBtn方形网格.Name = "RBtn方形网格";
            RBtn方形网格.Text = "方形网格";
            RBtn方形网格.Click += (sender, e) => {
                RBtn显示网格.Image = GlobalResource.BuildImage(RBtnimage方形网格, 40, 40);
                this.RBtn分区.Enabled = false;
            };
 
            RBtn圆形网格 = new System.Windows.Forms.RibbonButton();
            var RBtnimage圆形网格 = "Grid-Circ.png";
            RBtn圆形网格.SmallImage = GlobalResource.BuildImage(RBtnimage圆形网格, 20, 20);
            RBtn圆形网格.Name = "RBtn圆形网格";
            RBtn圆形网格.Text = "圆形网格";
            RBtn圆形网格.Click += (sender, e) => {
                RBtn显示网格.Image = GlobalResource.BuildImage(RBtnimage圆形网格, 40, 40);
                this.RBtn分区.Enabled = true;
            };
 
 
            #endregion
 
            ////步进按钮
            #region
            RBtn步进 = new System.Windows.Forms.RibbonButton();
            var RBtnimage步进 = "Grid-Step.png";
            RBtn步进.Image = GlobalResource.BuildImage(RBtnimage步进, 40, 40);
            RBtn步进.Style = RibbonButtonStyle.DropDown;
            RBtn步进.Name = "RBtn步进";
            RBtn步进.Text = "步进";
 
            //////步进按钮下拉菜单
            ribbonTextBox步进值 = new System.Windows.Forms.RibbonTextBox();
            ribbonTextBox步进值.Text = "值";
            ribbonTextBox步进值.Name = "ribbonTextBox步进值";
            ribbonTextBox步进值.TextBoxTextChanged += (sender, e) => {
                if (ribbonTextBox步进值.TextBoxText != null)
                {
                    RBtn步进1mm.Checked = false;
                    RBtn步进2mm.Checked = false;
                    RBtn步进3mm.Checked = false;
                    RBtn步进5mm.Checked = false;
                    RBtn步进10mm.Checked = false;
                }
            };
 
 
            RBtn步进1mm = new System.Windows.Forms.RibbonButton();
            RBtn步进1mm.Name = "RBtn步进1mm";
            RBtn步进1mm.Text = "1mm";
            RBtn步进1mm.CheckOnClick = true;
            RBtn步进1mm.Click += (sender, e) =>
            {
                RBtn步进1mm.Checked = true;
                if (RBtn步进1mm.Checked == true)
                {
                    ribbonTextBox步进值.TextBoxText = null;
                }
            };
 
            RBtn步进2mm = new System.Windows.Forms.RibbonButton();
            RBtn步进2mm.Name = "RBtn步进2mm";
            RBtn步进2mm.Text = "2mm";
            RBtn步进2mm.CheckOnClick = true;
            RBtn步进2mm.Click += (sender, e) =>
            {
                RBtn步进2mm.Checked = true;
                if (RBtn步进2mm.Checked == true)
                {
                    ribbonTextBox步进值.TextBoxText = null;
                }
            };
 
            RBtn步进3mm = new System.Windows.Forms.RibbonButton();
            RBtn步进3mm.Name = "RBtn步进3mm";
            RBtn步进3mm.Text = "3mm";
            RBtn步进3mm.CheckOnClick = true;
            RBtn步进3mm.Click += (sender, e) =>
            {
                RBtn步进3mm.Checked = true;
                if (RBtn步进3mm.Checked == true)
                {
                    ribbonTextBox步进值.TextBoxText = null;
                }
            };
 
            RBtn步进5mm = new System.Windows.Forms.RibbonButton();
            RBtn步进5mm.Name = "RBtn步进5mm";
            RBtn步进5mm.Text = "5mm";
            RBtn步进5mm.CheckOnClick = true;
            RBtn步进5mm.Click += (sender, e) =>
            {
                RBtn步进5mm.Checked = true;
                if (RBtn步进5mm.Checked == true)
                {
                    ribbonTextBox步进值.TextBoxText = null;
                }
            };
 
            RBtn步进10mm = new System.Windows.Forms.RibbonButton();
            RBtn步进10mm.Name = "RBtn步进10mm";
            RBtn步进10mm.Text = "10mm";
            RBtn步进10mm.CheckOnClick = true;
            RBtn步进10mm.Click += (sender, e) =>
            {
                RBtn步进10mm.Checked = true;
                if (RBtn步进10mm.Checked == true)
                {
                    ribbonTextBox步进值.TextBoxText = null;
                }
            };
 
            #endregion
 
            ////旋转按钮
            #region
            RBtn旋转 = new System.Windows.Forms.RibbonButton();
            var RBtnimage旋转 = "Grid-Rotation.png";
            RBtn旋转.Image = GlobalResource.BuildImage(RBtnimage旋转, 40, 40);
            RBtn旋转.Style = RibbonButtonStyle.DropDown;
            RBtn旋转.Name = "RBtn旋转";
            RBtn旋转.Text = "旋转";
 
            //////旋转按钮下拉菜单
            ribbonTextBox旋转值 = new System.Windows.Forms.RibbonTextBox();
            ribbonTextBox旋转值.Text = "值";
            ribbonTextBox旋转值.Name = "ribbonTextBox旋转值";
            ribbonTextBox旋转值.TextBoxTextChanged += (sender, e) => {
                if(ribbonTextBox旋转值.TextBoxText != null)
                {
                    RBtn30度.Checked = false;
                    RBtn60度.Checked = false;
                    RBtn90度.Checked = false;
                    RBtn180度.Checked = false;
                }
            };
 
            RBtn30度 = new System.Windows.Forms.RibbonButton();
            RBtn30度.Name = "RBtn30度";
            RBtn30度.Text = "30°";
            RBtn30度.CheckOnClick = true;
            RBtn30度.Click += (sender, e) =>
            {
                RBtn30度.Checked = true;
                if (RBtn30度.Checked == true)
                {
                    ribbonTextBox旋转值.TextBoxText = null;
                }
            };
            
 
            RBtn60度 = new System.Windows.Forms.RibbonButton();
            RBtn60度.Name = "RBtn60度";
            RBtn60度.Text = "60°";
            RBtn60度.CheckOnClick = true;
            RBtn60度.Click += (sender, e) =>
            {
                RBtn60度.Checked = true;
                if (RBtn60度.Checked == true)
                {
                    ribbonTextBox旋转值.TextBoxText = null;
                }
            };
 
            RBtn90度 = new System.Windows.Forms.RibbonButton();
            RBtn90度.Name = "RBtn90度";
            RBtn90度.Text = "90°";
            RBtn90度.CheckOnClick = true;
            RBtn90度.Click += (sender, e) =>
            {
                RBtn90度.Checked = true;
                if (RBtn90度.Checked == true)
                {
                    ribbonTextBox旋转值.TextBoxText = null;
                }
            };
 
            RBtn180度 = new System.Windows.Forms.RibbonButton();
            RBtn180度.Name = "RBtn180度";
            RBtn180度.Text = "180°";
            RBtn180度.CheckOnClick =true;
            RBtn180度.Click += (sender, e) =>
            {
                RBtn180度.Checked = true;
                if (RBtn180度.Checked == true)
                {
                    ribbonTextBox旋转值.TextBoxText = null;
                }
            };
 
            #endregion
 
            ////分区按钮
            #region
            RBtn分区 = new System.Windows.Forms.RibbonButton();
            var RBtnimage分区 = "Grid-Divisions.png";
            RBtn分区.Image = GlobalResource.BuildImage(RBtnimage分区, 40, 40);
            RBtn分区.Style = RibbonButtonStyle.DropDown;
            RBtn分区.Name = "RBtn分区";
            RBtn分区.Text = "分区";
            RBtn分区.Enabled = false;
 
            //////分区按钮下拉菜单
            ribbonTextBox分区数量 = new System.Windows.Forms.RibbonTextBox();
            ribbonTextBox分区数量.Text = "分区数量";
            ribbonTextBox分区数量.Name = "ribbonTextBox分区数量";
            ribbonTextBox分区数量.TextBoxTextChanged += (sender, e) => {
                if (ribbonTextBox分区数量.TextBoxText != null)
                {
                    RBtn3分区.Checked = false;
                    RBtn5分区.Checked = false;
                    RBtn8分区.Checked = false;
                    RBtn12分区.Checked = false;
                }
            };
 
            RBtn3分区 = new System.Windows.Forms.RibbonButton();
            RBtn3分区.Name = "RBtn3分区";
            RBtn3分区.Text = "3";
            RBtn3分区.CheckOnClick = true;
            RBtn3分区.Click += (sender, e) =>
            {
                RBtn3分区.Checked = true;
                if (RBtn3分区.Checked == true)
                {
                    ribbonTextBox分区数量.TextBoxText = null;
                }
            };
 
            RBtn5分区 = new System.Windows.Forms.RibbonButton();
            RBtn5分区.Name = "RBtn5分区";
            RBtn5分区.Text = "5";
            RBtn5分区.CheckOnClick = true;
            RBtn5分区.Click += (sender, e) =>
            {
                RBtn5分区.Checked = true;
                if (RBtn5分区.Checked == true)
                {
                    ribbonTextBox分区数量.TextBoxText = null;
                }
            };
 
            RBtn8分区 = new System.Windows.Forms.RibbonButton();
            RBtn8分区.Name = "RBtn8分区";
            RBtn8分区.Text = "8";
            RBtn8分区.CheckOnClick = true;
            RBtn8分区.Click += (sender, e) =>
            {
                RBtn8分区.Checked = true;
                if (RBtn8分区.Checked == true)
                {
                    ribbonTextBox分区数量.TextBoxText = null;
                }
            };
 
            RBtn12分区 = new System.Windows.Forms.RibbonButton();
            RBtn12分区.Name = "RBtn12分区";
            RBtn12分区.Text = "12";
            RBtn12分区.CheckOnClick = true;
            RBtn12分区.Click += (sender, e) =>
            {
                RBtn12分区.Checked = true;
                if (RBtn12分区.Checked == true)
                {
                    ribbonTextBox分区数量.TextBoxText = null;
                }
            };
 
 
            #endregion
 
            #endregion
 
            
            #region 渲染模式
            ribbonPanel模式 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel模式.Text = "模式";
            ribbonPanel模式.Name = "ribbonPanel模式";
            ribbonPanel模式.ButtonMoreVisible = isButtonMoreVisible;
 
            ////渲染模式按钮
            RBtn渲染模式 = new System.Windows.Forms.RibbonButton();
            var RBtnimage渲染模式 = "View-RenderRaytraced.png";
            RBtn渲染模式.Image = GlobalResource.BuildImage(RBtnimage渲染模式, 40, 40);
            RBtn渲染模式.MinSizeMode = RibbonElementSizeMode.Large;
            RBtn渲染模式.Name = "RBtn渲染模式";
            RBtn渲染模式.Style = RibbonButtonStyle.DropDown;
            RBtn渲染模式.Text = "渲染模式";
 
            //////渲染模式按钮下拉菜单
            RBtn实体着色模式 = new System.Windows.Forms.RibbonButton();
            var RBtnimage实体着色模式 = "View-RenderSolidShaded.png";
            RBtn实体着色模式.SmallImage = GlobalResource.BuildImage(RBtnimage实体着色模式, 20, 20);
            RBtn实体着色模式.Text = "实体着色模式";
            RBtn实体着色模式.Name = "RBtn实体着色模式";
            RBtn实体着色模式.Click += (sender, e) => {
                RBtn渲染模式.Image = GlobalResource.BuildImage(RBtnimage实体着色模式, 40, 40);
            };
 
            RBtn绘画模式 = new System.Windows.Forms.RibbonButton();
            var RBtnimage绘画模式 = "View-RenderHLR.png";
            RBtn绘画模式.SmallImage = GlobalResource.BuildImage(RBtnimage绘画模式, 20, 20);
            RBtn绘画模式.Text = "绘画模式";
            RBtn绘画模式.Name = "RBtn绘画模式";
            RBtn绘画模式.Click += (sender, e) => {
                RBtn渲染模式.Image = GlobalResource.BuildImage(RBtnimage绘画模式, 40, 40);
            };
 
            RBtn光线追踪模式 = new System.Windows.Forms.RibbonButton();
            var RBtnimage光线追踪模式 = "View-RenderRaytraced.png";
            RBtn光线追踪模式.SmallImage = GlobalResource.BuildImage(RBtnimage光线追踪模式, 20, 20);
            RBtn光线追踪模式.Text = "光线追踪模式";
            RBtn光线追踪模式.Name = "RBtn光线追踪模式";
            RBtn光线追踪模式.Click += (sender, e) => {
                RBtn渲染模式.Image = GlobalResource.BuildImage(RBtnimage光线追踪模式, 40, 40);
            };
 
 
            #endregion
 
            
            #region 图层 暂时没用
            ribbonPanel图层 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel图层.Text = "图层";
            ribbonPanel图层.Name = "ribbonPanel图层";
            ribbonPanel图层.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel图层.FlowsTo = RibbonPanelFlowDirection.Left;
            ribbonPanel图层.Visible = false;
 
            RGroup大图标 = new System.Windows.Forms.RibbonItemGroup();
            RGroup大图标.DrawBackground = false;
            RGroup大图标.Name = "RGroup大图标";
            RGroup大图标.Text = "RGroup大图标";
 
            RGroup下拉框 = new System.Windows.Forms.RibbonItemGroup();
            RGroup下拉框.DrawBackground = false;
            RGroup下拉框.Name = "RGroup下拉框";
            RGroup下拉框.Text = "RGroup下拉框";
 
            RGroup小图标 = new System.Windows.Forms.RibbonItemGroup();
            RGroup小图标.DrawBackground = false;
            RGroup小图标.Name = "RGroup小图标";
            RGroup小图标.Text = "RGroup小图标";
 
            Rbtn图层编辑 = new System.Windows.Forms.RibbonButton();
            var RBtnimage图层编辑 = "Layer-Editor.png";
            Rbtn图层编辑.Image = GlobalResource.BuildImage(RBtnimage图层编辑, 40, 40);
            Rbtn图层编辑.Name = "Rbtn图层编辑";
            Rbtn图层编辑.Text = "图层编辑";
            Rbtn图层编辑.Click += (sender, e) => {
                //Test test = new Test();
                //test.ShowDialog();
            };
 
            Rbtn锁定 = new System.Windows.Forms.RibbonButton();
            var RBtnimage锁定 = "Generic-Locked.png";
            Rbtn锁定.SmallImage = GlobalResource.BuildImage(RBtnimage锁定, 20, 20);
            Rbtn锁定.CheckOnClick = true;
            Rbtn锁定.Name = "Rbtn锁定";
            Rbtn锁定.Text = "锁定";
            Rbtn锁定.Text = "锁定";
 
            Rbtn所有实体 = new System.Windows.Forms.RibbonButton();
            var RBtnimage所有实体 = "Layer-MoveToLayer.png";
            Rbtn所有实体.SmallImage = GlobalResource.BuildImage(RBtnimage所有实体, 20, 20);
            Rbtn所有实体.Name = "Rbtn所有实体";
            Rbtn所有实体.Text = "所有实体";
 
            Rbtn选择全部 = new System.Windows.Forms.RibbonButton();
            var RBtnimage选择全部 = "Layer-SelectAllEntities.png";
            Rbtn选择全部.SmallImage = GlobalResource.BuildImage(RBtnimage选择全部, 20, 20);
            Rbtn选择全部.Name = "Rbtn选择全部";
            Rbtn选择全部.Text = "选择全部";
 
            Rbtn隔离 = new System.Windows.Forms.RibbonButton();
            var RBtnimage隔离 = "Layer-Isolation.png";
            Rbtn隔离.SmallImage = GlobalResource.BuildImage(RBtnimage隔离, 20, 20);
            Rbtn隔离.CheckOnClick = true;
            Rbtn隔离.Name = "Rbtn隔离";
            Rbtn隔离.Text = "隔离";
 
            Rbtn显示 = new System.Windows.Forms.RibbonButton();
            var RBtnimage显示 = "Generic-Visible.png";
            Rbtn显示.SmallImage = GlobalResource.BuildImage(RBtnimage显示, 20, 20);
            Rbtn显示.CheckOnClick = true;
            Rbtn显示.Name = "Rbtn显示";
            Rbtn显示.Text = "显示";
 
            Rbtn特性 = new System.Windows.Forms.RibbonButton();
            var RBtnimage特性 = "Layer-VisualProps.png";
            Rbtn特性.SmallImage = GlobalResource.BuildImage(RBtnimage特性, 20, 20);
            Rbtn特性.Name = "Rbtn特性";
            Rbtn特性.Text = "特性";
 
            RBox图层 = new System.Windows.Forms.RibbonComboBox();
            RBox图层.MaxSizeMode = RibbonElementSizeMode.Compact;
            RBox图层.TextBoxWidth = 140;
            //RBox图层.SelectedIndex = 0;
            RBox图层.Name = "RBox图层";
 
            //ribbonComboBox1.DropDownItems.Add(ribbonLabel1);
            #endregion
 
 
            #region 设计步骤 : 上一步 下一步 完成
            ribbonPanel操作步骤 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel操作步骤.Text = "步骤"; 
            ribbonPanel操作步骤.Name = "ribbonPanel操作步骤";
            ribbonPanel操作步骤.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel操作步骤.FlowsTo = RibbonPanelFlowDirection.Left;
 
 
            Rbtn完成 = new System.Windows.Forms.RibbonButton(); 
            Rbtn完成.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            Rbtn完成.Name = "Rbtn完成";
            Rbtn完成.Text = "完成";
            Rbtn完成.Click += (sender, e) => { 
                Rbtn上一步.Enabled = false; 
                Rbtn下一步.Enabled = false;
                Rbtn完成.Enabled = false;
            };
            Rbtn上一步 = new System.Windows.Forms.RibbonButton();
            var Btnimagename上一步 = "circle-arrow-left.png";
            Rbtn上一步.Image = GlobalResource.BuildImage(Btnimagename上一步, 40, 40);
 
            Rbtn上一步.Name = "Rbtn上一步";
            Rbtn上一步.Text = "上一步";
            Rbtn上一步.Click += (sender, e) =>
            {
                if (GoPrevStepCore())
                {
 
                }
            };
 
            Rbtn下一步 = new System.Windows.Forms.RibbonButton();
            Rbtn下一步.Image = GlobalResource.BuildImage("circle-arrow-right.png", 40, 40);
            Rbtn下一步.Visible = true;
            Rbtn下一步.Name = "Rbtn下一步";
            Rbtn下一步.Text = "下一步";
            Rbtn下一步.Click += (sender, e) => {
                if (GoNextStepCore())
                {
 
                }
            };
 
            RBtn后退 = new System.Windows.Forms.RibbonButton();
            RBtn后退.SmallImage = GlobalResource.BuildImage("undo16.png", 20, 20);
            RBtn后退.Name = "RBtn后退";
            RBtn后退.Click += (e2, s2) => {
                if (GoPrevStepCore())
                {
 
                }
            };
 
            Rbtn前进 = new System.Windows.Forms.RibbonButton();
            Rbtn前进.SmallImage = GlobalResource.BuildImage("do.png", 20, 20);
            Rbtn前进.Name = "Rbtn前进";
            Rbtn前进.Click += (e2, s2) => {
                if (GoNextStepCore())
                {
 
                }
            };
 
 
 
 
 
 
            RBtnMenu保存 = new System.Windows.Forms.RibbonButton();
            var RBtnMenuimage保存 = "Select.png";
            RBtnMenu保存.SmallImage = GlobalResource.BuildImage(RBtnMenuimage保存, 20, 20);
            RBtnMenu保存.DropDownArrowDirection = RibbonArrowDirection.Left;
            RBtnMenu保存.Name = "RBtnMenu保存";
            RBtnMenu保存.Text = "保存";
            RBtnMenu保存.Click += (sender, e) =>
            {
                //if (RBtn保存.Visible == true)
                //{
                //    RBtnMenu保存.SmallImage = GlobalResource.BuildImage(RBtnMenuimage保存, 20, 20);
                //    RBtn保存.Visible = false;
                //}
                //else
                //{
                //    RBtnMenu保存.SmallImage = GlobalResource.BuildImage(RBtnMenuimage保存, 20, 20);
                //    RBtn保存.Visible = true;
                //}
            };
 
            #endregion
 
 
            #region  面板显示
 
 
            ribbonPanel面板显示 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel面板显示.Text = "面板显示";
            ribbonPanel面板显示.Name = "ribbonPanel面板显示";
            ribbonPanel面板显示.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel面板显示.FlowsTo = RibbonPanelFlowDirection.Left;
 
 
            RbtnChk步骤面板 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk步骤面板.Checked = true ;
            //RbtnChk步骤面板.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk步骤面板.Name = "RbtnChk步骤面板";
            RbtnChk步骤面板.Text = "步骤面板";
            RbtnChk步骤面板.CheckBoxCheckChanged += (sender, e) => { 
 
            };
            RbtnChk图层面板 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk图层面板.Checked = true;
            //RbtnChk步骤面板.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk图层面板.Name = "RbtnChk图层面板";
            RbtnChk图层面板.Text = "图层面板";
            RbtnChk图层面板.CheckBoxCheckChanged += (sender, e) => {
                if (_layersDockPanel.DockPanel == null)
                {
                    MainDockPanel.AddContent(_layersDockPanel);
                }
                else
                {
                    MainDockPanel.RemoveContent(_layersDockPanel);
                }
            };
            RbtnChk步骤面板 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk步骤面板.Checked = true;
            //RbtnChk步骤面板.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk步骤面板.Name = "RbtnChk步骤面板";
            RbtnChk步骤面板.Text = "步骤面板";
            RbtnChk步骤面板.CheckBoxCheckChanged += (sender, e) => {
                if (_stepTreeDockPanel.DockPanel == null)
                {
                    MainDockPanel.AddContent(_stepTreeDockPanel);
                }
                else
                {
                    MainDockPanel.RemoveContent(_stepTreeDockPanel);
                }
            };
            RbtnChk日志面板 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk日志面板.Checked = true;
            //RbtnChk步骤面板.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk日志面板.Name = "RbtnChk日志面板";
            RbtnChk日志面板.Text = "日志面板";
            RbtnChk日志面板.CheckBoxCheckChanged += (sender, e) => {
                if (_logListDockPanel.DockPanel == null)
                {
                    MainDockPanel.AddContent(_logListDockPanel);
                }
                else
                {
                    MainDockPanel.RemoveContent(_logListDockPanel);
                }
            };
            RbtnChk参数面板 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk参数面板.Checked = true;
            //RbtnChk参数面板.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk参数面板.Name = "RbtnChk参数面板";
            RbtnChk参数面板.Text = "参数面板";
            RbtnChk参数面板.CheckBoxCheckChanged += (sender, e) => {
                if (_parasDockPanel.DockPanel == null)
                {
                    MainDockPanel.AddContent(_parasDockPanel);
                }
                else
                {
                    MainDockPanel.RemoveContent(_parasDockPanel);
                }
            };
 
 
            
 
 
 
 
            #endregion
 
 
            #region  数据导出
            ribbonPanel数据导出 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel数据导出.Text = "导出";
            ribbonPanel数据导出.Name = "ribbonPanel数据导出";
            ribbonPanel数据导出.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel数据导出.FlowsTo = RibbonPanelFlowDirection.Left;
 
            Rbtn数据导出XML = new System.Windows.Forms.RibbonButton();
            Rbtn数据导出XML.Image = GlobalResource.BuildImage("device-ipad-share.png", 40, 40);
            Rbtn数据导出XML.Name = "Rbtn数据导出XML";
            Rbtn数据导出XML.Text = "导出XML";
            Rbtn数据导出XML.Click += (sender, e) => {
                ExportXmlFile();
            };
 
            Rbtn数据导出STP = new System.Windows.Forms.RibbonButton();
            Rbtn数据导出STP.Image = GlobalResource.BuildImage("device-ipad-share.png", 40, 40);
            Rbtn数据导出STP.Name = "Rbtn数据导出STP";
            Rbtn数据导出STP.Text = "导出stp";
            Rbtn数据导出STP.Click += (sender, e) => {
                ExportStpFile();
            };
            Rbtn数据导出STP.Visible = false;
 
 
            Rbtn数据导出IGS = new System.Windows.Forms.RibbonButton();
            Rbtn数据导出IGS.Image = GlobalResource.BuildImage("device-ipad-share.png", 40, 40);
            Rbtn数据导出IGS.Name = "Rbtn数据导出IGS";
            Rbtn数据导出IGS.Text = "导出igs";
            Rbtn数据导出IGS.Click += (sender, e) => {
                ExportIgsFile();
            };
            Rbtn数据导出IGS.Visible = false;
            #endregion
 
 
            #region  数据导入
            ribbonPanel数据导入 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel数据导入.Text = "导入";
            ribbonPanel数据导入.Name = "ribbonPanel数据导入";
            ribbonPanel数据导入.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel数据导入.FlowsTo = RibbonPanelFlowDirection.Left;
 
            Rbtn数据导入XML = new System.Windows.Forms.RibbonButton();
            Rbtn数据导入XML.Image = GlobalResource.BuildImage("device-ipad-share.png", 40, 40);
            Rbtn数据导入XML.Name = "Rbtn数据导入XML";
            Rbtn数据导入XML.Text = "导入XML";
            Rbtn数据导入XML.Click += (sender, e) => {
                ImportXmlFile();
            };
 
 
            #endregion
 
 
            #region 组件显示
            ribbonPanel组件显示 = new System.Windows.Forms.RibbonPanel();
            ribbonPanel组件显示.Text = "组件显示";
            ribbonPanel组件显示.Name = "ribbonPanel组件显示";
            ribbonPanel组件显示.ButtonMoreVisible = isButtonMoreVisible;
            ribbonPanel组件显示.FlowsTo = RibbonPanelFlowDirection.Left;
 
            RbtnChk截面18 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk截面18.Checked = false ;
            //RbtnChk截面18.Image = GlobalResource.BuildImage("circle-check.png", 40, 40);
            RbtnChk截面18.Name = "RbtnChk截面18";
            RbtnChk截面18.Text = "截面18";
            RbtnChk截面18.Visible = false;
            RbtnChk截面18.CheckBoxCheckChanged += (sender, e) => {
                if (RbtnChk截面18.Checked)
                {
                    this._occDesign3dCtrl.SetAllSectionCurveVisible(true );
                }
                else
                {
                    this._occDesign3dCtrl.SetAllSectionCurveVisible(false);
                }
            };
 
            RbtnChk标注 = new System.Windows.Forms.RibbonCheckBox();
            RbtnChk标注.Checked = false;
            RbtnChk标注.Name = "RbtnChk标注";
            RbtnChk标注.Text = "2D标注隐藏";
            RbtnChk标注.Visible = false;
            RbtnChk标注.CheckBoxCheckChanged += (sender, e) => {
                if (!RbtnChk标注.Checked)
                {
                    this._occDesign2dCtrl.SetDimVisible(true);
                }
                else
                {
                    this._occDesign2dCtrl.SetDimVisible(false);
                }
            };
 
            #endregion
 
 
            #region  控件添加  后退 前进
            ribbonForm.QuickAccessToolbar.Items.Add(this.RBtn后退);
            ribbonForm.QuickAccessToolbar.Items.Add(this.Rbtn前进);
    
            //小图标 点击更多 展开后显示
            ribbonForm.QuickAccessToolbar.DropDownButtonItems.Add(RBtnMenu保存); 
 
            //左上部菜单 
            ribbonForm.OrbDropDown.MenuItems.Add(RBtnFile保存);
            ribbonForm.OrbDropDown.MenuItems.Add(RBtnFile打开); 
            ribbonForm.OrbDropDown.MenuItems.Add(RBtnFile选项);
 
            //
            ribbonTab视图.Panels.Add(ribbonPanel视图);
            ribbonTab视图.Panels.Add(ribbonPanel变焦);
            ribbonTab视图.Panels.Add(ribbonPanel模式);
            ribbonTab视图.Panels.Add(ribbonPanel图层);
            ribbonTab视图.Panels.Add(ribbonPanel网格);
 
            ribbonTab编辑.Panels.Add(ribbonPanel操作步骤);
            ribbonTab编辑.Panels.Add(ribbonPanel面板显示); 
            ribbonTab编辑.Panels.Add(ribbonPanel数据导出);
            ribbonTab编辑.Panels.Add(ribbonPanel数据导入);
            ribbonTab编辑.Panels.Add(ribbonPanel组件显示);
 
            ribbonPanel视图.Items.Add(RBtn后视图);
            ribbonPanel视图.Items.Add(RBtn正视图);
            ribbonPanel视图.Items.Add(RBtn仰视图);
            ribbonPanel视图.Items.Add(RBtn俯视图);
            ribbonPanel视图.Items.Add(RBtn右视图);
            ribbonPanel视图.Items.Add(RBtn左视图);
            ribbonPanel变焦.Items.Add(RBtn缩小);
            ribbonPanel变焦.Items.Add(RBtn放大);
            ribbonPanel变焦.Items.Add(RBtn缩放选中);
            ribbonPanel变焦.Items.Add(RBtn全部缩放);
            ribbonPanel网格.Items.Add(RBtn显示网格);
            ribbonPanel网格.Items.Add(RBtn旋转);
            ribbonPanel网格.Items.Add(RBtn步进);
            ribbonPanel网格.Items.Add(RBtn分区);
            ribbonPanel模式.Items.Add(RBtn渲染模式);
            ribbonPanel图层.Items.Add(RGroup小图标);
            ribbonPanel图层.Items.Add(RGroup下拉框);
            ribbonPanel图层.Items.Add(Rbtn图层编辑);
 
            ribbonPanel操作步骤.Items.Add(Rbtn完成);
            ribbonPanel操作步骤.Items.Add(Rbtn下一步);
            ribbonPanel操作步骤.Items.Add(Rbtn上一步);
 
            ribbonPanel面板显示.Items.Add(RbtnChk步骤面板);
            ribbonPanel面板显示.Items.Add(RbtnChk图层面板);
            ribbonPanel面板显示.Items.Add(RbtnChk日志面板); 
            ribbonPanel面板显示.Items.Add(RbtnChk参数面板);
 
            ribbonPanel数据导出.Items.Add(Rbtn数据导出XML);
            ribbonPanel数据导出.Items.Add(Rbtn数据导出STP);
            ribbonPanel数据导出.Items.Add(Rbtn数据导出IGS);
 
            ribbonPanel数据导入.Items.Add(Rbtn数据导入XML);
 
            ribbonPanel组件显示.Items.Add(RbtnChk截面18);
            ribbonPanel组件显示.Items.Add(RbtnChk标注);
 
            RGroup下拉框.Items.Add(RBox图层);
            RGroup小图标.Items.Add(Rbtn所有实体);
            RGroup小图标.Items.Add(Rbtn选择全部);
            RGroup小图标.Items.Add(Rbtn锁定);
            RGroup小图标.Items.Add(Rbtn隔离);
            RGroup小图标.Items.Add(Rbtn显示);
            RGroup小图标.Items.Add(Rbtn特性);
 
            RBtn显示网格.DropDownItems.Add(RBtn圆形网格);
            RBtn显示网格.DropDownItems.Add(RBtn方形网格);
            RBtn旋转.DropDownItems.Add(ribbonTextBox旋转值);
            RBtn旋转.DropDownItems.Add(RBtn180度);
            RBtn旋转.DropDownItems.Add(RBtn90度);
            RBtn旋转.DropDownItems.Add(RBtn60度);
            RBtn旋转.DropDownItems.Add(RBtn30度);
            RBtn步进.DropDownItems.Add(ribbonTextBox步进值);
            RBtn步进.DropDownItems.Add(RBtn步进10mm);
            RBtn步进.DropDownItems.Add(RBtn步进5mm);
            RBtn步进.DropDownItems.Add(RBtn步进3mm);
            RBtn步进.DropDownItems.Add(RBtn步进2mm);
            RBtn步进.DropDownItems.Add(RBtn步进1mm);
            RBtn分区.DropDownItems.Add(ribbonTextBox旋转值);
            RBtn分区.DropDownItems.Add(RBtn12分区);
            RBtn分区.DropDownItems.Add(RBtn8分区);
            RBtn分区.DropDownItems.Add(RBtn5分区);
            RBtn分区.DropDownItems.Add(RBtn3分区);
            RBtn渲染模式.DropDownItems.Add(RBtn光线追踪模式);
            RBtn渲染模式.DropDownItems.Add(RBtn绘画模式);
            RBtn渲染模式.DropDownItems.Add(RBtn实体着色模式);
 
            this.ribbonForm.Tabs.Add(ribbonTab编辑);
            this.ribbonForm.Tabs.Add(ribbonTab视图);
            #endregion
        }
        
 
 
 
 
    }
}