프로젝트

일반

사용자정보

개정판 a1d82fda

IDa1d82fda6bc75e7ee633bd2451d308d91d0c644c
상위 fae4f386
하위 f9eba687

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

dev issue #507 : Test

Change-Id: I28a1937afc4f2c97160d0b8b125560bb42aaed85

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
2723 2723
            Line connLine = connObj as Line;
2724 2724
            Symbol connSymbol = connObj as Symbol;
2725 2725

  
2726
            double zeroLengthMove = GridSetting.GetInstance().Length * 3;
2727
            double lineMove = GridSetting.GetInstance().Length * 3;
2726
            double zeroLengthMove = 0;//GridSetting.GetInstance().Length * 3;
2727
            double lineMove = 0;//GridSetting.GetInstance().Length * 3;
2728 2728
            if (Convert.ToBoolean(targetConnector.get_IsZeroLength()))
2729 2729
            {
2730 2730
                result = GetConnectorVertices(targetConnector)[0];
DTI_PID/SPPIDConverter/ConverterDocking.cs
213 213
        #region TEST
214 214
        private void simpleButton1_Click(object sender, EventArgs e)
215 215
        {
216
            foreach (RADObject item in application.ActiveDocument.ActiveSheet.DrawingObjects)
216
            //foreach (RADObject item in application.ActiveDocument.ActiveSheet.DrawingObjects)
217
            //{
218
            //    DependencyObject dependencyObject = item as DependencyObject;
219
            //    if (dependencyObject != null)
220
            //    {
221
            //        foreach (var attributes in dependencyObject.AttributeSets)
222
            //        {
223
            //            foreach (var attribute in attributes)
224
            //            {
225
            //                if (!DBNull.Value.Equals(attribute.GetValue()) && attribute.GetValue() != null && attribute.GetValue().ToString() == "40E2CDE9781940089C37258D37FA3BCD")
226
            //                {
227
            //                    application.ActiveSelectSet.Add(item);
228
            //                }
229
            //            }
230
            //        }
231
            //    }
232
            //}
233

  
234
            Placement placement = new Placement();
235
            LMADataSource dataSource = placement.PIDDataSource;
236

  
237
            LMModelItem modelItem = dataSource.GetModelItem("16C45380E2EB4818A6A9BFE11F0228DE");
238
            LMPipeRun pipeRun = dataSource.GetPipeRun("16C45380E2EB4818A6A9BFE11F0228DE");
239
            LMSymbol symbol = dataSource.GetSymbol("F454BD9CC87C4C3AAE8282F2AB10B7E0");
240
            string symbolPath = string.Empty;
241
            if (modelItem != null)
217 242
            {
218
                DependencyObject dependencyObject = item as DependencyObject;
219
                if (dependencyObject != null)
243
                foreach (LMRepresentation rep in modelItem.Representations)
220 244
                {
221
                    foreach (var attributes in dependencyObject.AttributeSets)
245
                    if (!DBNull.Value.Equals(rep.get_FileName()) && !string.IsNullOrEmpty(rep.get_FileName()))
222 246
                    {
223
                        foreach (var attribute in attributes)
247
                        symbolPath = rep.get_FileName();
248
                        string newFileName = @"\Piping\Routing\Process Lines\Secondary Piping.sym";
249
                        if (symbolPath != newFileName)
224 250
                        {
225
                            if (!DBNull.Value.Equals(attribute.GetValue()) && attribute.GetValue() != null && attribute.GetValue().ToString() == "40E2CDE9781940089C37258D37FA3BCD")
226
                            {
227
                                application.ActiveSelectSet.Add(item);
228
                            }
251

  
252
                            //symbol.set_FileName(newFileName);
253
                            placement.PIDReplaceSymbol(newFileName, ref symbol);
254
                            symbol.Commit();
255
                            //rep.set_FileName(newFileName);
256
                            //rep.Commit();
257
                            
229 258
                        }
259
                        break;
230 260
                    }
231 261
                }
232 262
            }
DTI_PID/SPPIDConverter/SPPIDConverter.csproj.user
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 3
  <PropertyGroup>
4
    <ProjectView>ProjectFiles</ProjectView>
4
    <ProjectView>ShowAllFiles</ProjectView>
5 5
  </PropertyGroup>
6 6
</Project>

내보내기 Unified diff

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