프로젝트

일반

사용자정보

개정판 1ed39474

ID1ed39474258430dd776780537f1843aeb2128e0a
상위 7dcb95df
하위 892bd8a2

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

dev issue #000 : Modeling bug fix / ZeroLength로 인한 ModelItem ID 꼬임현상 수정

Change-Id: I43efe6bdc339c07480653909266980c9db972930

차이점 보기:

DTI_PID/SPPIDConverter/ConverterDocking.cs
126 126
                            }
127 127
                        }
128 128

  
129
                        List<SPPID_Document> allDocuments = new List<SPPID_Document>();
129 130
                        foreach (DataRow row in drawingTable.Rows)
130 131
                        {
131 132
                            SPPID_Document document = JsonConvert.DeserializeObject<SPPID_Document>(row["DOCUMENT"].ToString());
132
                            AutoModeling_OPC opc = new AutoModeling_OPC(document, application, radApp, row["DRAWINGNAME"].ToString());
133
                            opc.Run();
133
                            allDocuments.Add(document);
134 134
                        }
135

  
136
                        AutoModeling_OPC opc = new AutoModeling_OPC(allDocuments, application, radApp);
137
                        opc.Run();
135 138
                        //dynamic doc = application.Drawings.OpenDrawing(drawingTable.Rows[0]["DRAWINGNAME"]);
136 139

  
137 140
                        //doc.CloseDrawing(true);
......
209 212
            Placement _placement = new Placement();
210 213
            LMADataSource dataSource = new LMADataSource();//placement.PIDDataSource;
211 214

  
212
            LMOPC opc = dataSource.GetOPC("B79C53F295454F489B9DBCD9F1078D3E");
213
            LMOPC pairOPC = opc.pairedWithOPCObject;
215
            LMConnector connector = dataSource.GetConnector("");
216

  
217
            LMSymbol symbol1 = connector.ConnectItem1SymbolObject;
218
            LMSymbol symbol2 = connector.ConnectItem2SymbolObject;
214 219

  
215
            foreach (LMRepresentation rep in pairOPC.Representations)
216
            {
217
                if (rep.DrawingID != "0")
218
                {
219
                    MessageBox.Show(rep.DrawingObject.Attributes["Name"].get_Value().ToString());
220
                }
221
            }
222
            
223 220
        }
224 221

  
225 222
        

내보내기 Unified diff

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