프로젝트

일반

사용자정보

개정판 20972c61

ID20972c6187c312bf0c1ed020aff8a5a40b89a375
상위 5761879d
하위 7b581904, d1eac84d

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

dev issue #497 : equip, symbol Snap Grid

Change-Id: Ic17d8d2f63f394235694f6b7de2f14fc4bf504ea

차이점 보기:

DTI_PID/SPPIDConverter/ConverterDocking.cs
74 74

  
75 75
        private void simpleButton1_Click(object sender, EventArgs e)
76 76
        {
77
            //SPPIDSplashScreen s = new SPPIDSplashScreen();
78
            //s.ShowDialog();
79

  
80

  
81
            SplashScreenManager.ShowForm(typeof(SPPIDSplashScreen), true, true);
82
            SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetDocumentName, (IntPtr)radApp.HWnd);
83
            // The splash screen will be opened in a separate thread. To interact with it, use the SendCommand method.
84
            for (int i = 1; i <= 100; i++)
85
            {
86
                
87
                SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetProgress, i);
88
                //To process commands, override the SplashScreen.ProcessCommand method.
89
                Thread.Sleep(100);
90
            }
91

  
92
            // Close the Splash Screen.
93
            SplashScreenManager.CloseForm(false);
94

  
95
            ////SetVisibleCore(false);
96

  
97
            //SplashScreenWrapper wrapper = new SplashScreenWrapper();
98
            //wrapper.ShowDialog();
99

  
100
            return;
101

  
102
            Placement _placement = new Placement();
103
            LMADataSource dataSource = _placement.PIDDataSource;
104

  
105
            //double maxX = 0;
106
            //double maxY = 0;
107
            //foreach (object drawingObj in radApp.ActiveDocument.SelectSet)
108
            //{
109
            //    DependencyObject dd = drawingObj as DependencyObject;
110
            //    foreach (var attributes in dd.AttributeSets)
111
            //    {
112
            //        foreach (var item in attributes)
113
            //        {
114
            //            string name = item.Name;
115
            //            string value = item.GetValue().ToString();
116
            //        }
117
            //    }
118
            //    if (dd != null)
119
            //    {
120
            //        LineString2d lineString2D = dd.DrawingObjects[4] as LineString2d;
121
            //        lineString2D.InsertVertex(lineString2D.VertexCount, 0.5, 0.5);
122
            //        lineString2D.RemoveVertex(lineString2D.VertexCount);
123
            //    }
124
            //}
125

  
126
            //DependencyObject drawingObject = radApp.ActiveSelectSet[0] as DependencyObject;
127
            //foreach (var attributes in drawingObject.AttributeSets)
128
            //{
129
            //    foreach (var attribute in attributes)
130
            //    {
131
            //        if (attribute.Name == "ModelID")
132
            //        {
133
            //            LMModelItem modelItem = dataSource.GetModelItem(attribute.GetValue());
134
            //            _LMAItem item = modelItem.AsLMAItem();
135
            //            try
136
            //            {
137
            //                string modelitemID = item.Id;
138
            //                _placement.PIDAutoJoin(item, AutoJoinEndConstants.AutoJoin_None, ref item);
139
            //                string afterModelItemID = item.Id;
140
            //                item.Commit();
141
            //            }
142
            //            catch (Exception ex)
143
            //            {
144
            //                System.Windows.Forms.MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
145
            //            }
146
            //        }
147
            //    }
148
            //}
77
            Placement placement = new Placement();
78
            LMADataSource dataSource = placement.PIDDataSource;
149 79

  
150 80
            Ingr.RAD2D.Symbol2d symbol2d = radApp.ActiveSelectSet[0] as Ingr.RAD2D.Symbol2d;
151 81
            if (symbol2d != null)
......
184 114

  
185 115
               
186 116
            }
187

  
188

  
189

  
190 117
        }
191 118
    }
192 119
}

내보내기 Unified diff

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