개정판 4d2571ab
dev issue #683 : 우선순위 Symbol 모델링 추가 - 1. Angle Valve, 2. 3개의 Symbol이 연결되있는 경우, 3. Connector가 3개 이상인 Symbol 순으로 모델링
Change-Id: I3faf7ec8f8e50eb80e8fcc427c65d5d2cbfdd477
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
217 | 217 |
{ |
218 | 218 |
foreach (XElement item in node.Elements("LINE_NO")) |
219 | 219 |
{ |
220 |
LineNumber lineNumber = new LineNumber()
|
|
220 |
try
|
|
221 | 221 |
{ |
222 |
UID = item.Element("UID").Value, |
|
223 |
TEXT = item.Element("TEXT").Value, |
|
224 |
LOCATION = item.Element("LOCATION").Value, |
|
225 |
WIDTH = item.Element("WIDTH").Value, |
|
226 |
HEIGHT = item.Element("HEIGHT").Value, |
|
227 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
228 |
AREA = item.Element("AREA").Value, |
|
229 |
CONNLINE = item.Element("CONNLINE").Value, |
|
230 |
SCENE = item.Element("SCENE").Value |
|
231 |
}; |
|
232 |
SetLineNumberRuns(item, lineNumber.RUNS); |
|
233 |
SetProperties(item.Element("PROPERTIES"), lineNumber.PROPERTIES); |
|
234 |
SetAttributes(item, lineNumber.ATTRIBUTES); |
|
235 |
LINENUMBERS.Add(lineNumber); |
|
222 |
LineNumber lineNumber = new LineNumber() |
|
223 |
{ |
|
224 |
UID = item.Element("UID").Value, |
|
225 |
TEXT = item.Element("TEXT").Value, |
|
226 |
LOCATION = item.Element("LOCATION").Value, |
|
227 |
WIDTH = item.Element("WIDTH").Value, |
|
228 |
HEIGHT = item.Element("HEIGHT").Value, |
|
229 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
230 |
AREA = item.Element("AREA").Value, |
|
231 |
CONNLINE = item.Element("CONNLINE").Value, |
|
232 |
SCENE = item.Element("SCENE").Value |
|
233 |
}; |
|
234 |
SetLineNumberRuns(item, lineNumber.RUNS); |
|
235 |
SetProperties(item.Element("PROPERTIES"), lineNumber.PROPERTIES); |
|
236 |
SetAttributes(item, lineNumber.ATTRIBUTES); |
|
237 |
LINENUMBERS.Add(lineNumber); |
|
238 |
} |
|
239 |
catch (Exception ex) |
|
240 |
{ |
|
241 |
StringBuilder sb = new StringBuilder(); |
|
242 |
sb.AppendLine(item.Element("UID").Value); |
|
243 |
sb.AppendLine(""); |
|
244 |
sb.AppendLine(ex.Message); |
|
245 |
sb.AppendLine(ex.StackTrace); |
|
246 |
MessageBox.Show(sb.ToString()); |
|
247 |
} |
|
236 | 248 |
} |
237 | 249 |
} |
238 | 250 |
|
내보내기 Unified diff