개정판 1ed39474
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