프로젝트

일반

사용자정보

개정판 46756c13

ID46756c13a297247aeda9a05b672035b6063e51cf
상위 ab9a7ab5
하위 59184d1b

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #1223 : add signal draw function

Change-Id: Id070b7464a4587b3f22036fe0aa49e441a6721ab

차이점 보기:

DTI_PID/APIDConverter/AutoModeling.cs
22 22
    public class AutoModeling
23 23
    {
24 24
        Autodesk.Windows.RibbonCombo pipeStyleCombo = null;
25
        Autodesk.Windows.RibbonCombo signalStyleCombo = null;
25 26
        Autodesk.Windows.RibbonChecklistButton autoLabelCheckListButton = null;
26 27

  
27 28
        private void InitGUI()
......
34 35
            if (objAutoLabel != null)
35 36
                autoLabelCheckListButton = objAutoLabel as Autodesk.Windows.RibbonChecklistButton;
36 37

  
37

  
38
            items = GUI.RibbonHelper.GetPanelItems("ID_SIGNAL_PANEL");
39
            object objSignalStyle = GUIUtils.FindItem(items, "SIGNALSTYLE");
40
            if (objSignalStyle != null)
41
                signalStyleCombo = objSignalStyle as Autodesk.Windows.RibbonCombo;
38 42
        }
39 43
        private void SetAutoLabelUnCehck()
40 44
        {
......
72 76
            }
73 77
        }
74 78

  
79
        private void SetSignalStyle(string style)
80
        {
81
            if (signalStyleCombo.Current != null)
82
            {
83
                Autodesk.Windows.RibbonButton button = signalStyleCombo.Current as Autodesk.Windows.RibbonButton;
84
                if (button.AutomationName != style)
85
                {
86
                    foreach (var item in signalStyleCombo.Items)
87
                    {
88
                        Autodesk.Windows.RibbonButton loop = item as Autodesk.Windows.RibbonButton;
89
                        if (loop.AutomationName == style)
90
                        {
91
                            signalStyleCombo.Current = loop;
92
                            break;
93
                        }
94
                    }
95
                }
96
            }
97
        }
98

  
75 99
        private string ReadDrawingLastLine()
76 100
        {
77 101
            string sHandle = string.Empty;
......
183 207
        #endregion
184 208

  
185 209
        #region Test Source
186

  
187 210
        public void test()
188 211
        {
189 212
            InitGUI();

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)