개정판 2ea965f2
dev issue #000 : minor
Change-Id: I8585ffaced53cc2687d5f6c16df7fae1f674f098
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
211 | 211 |
SetSystemEditingCommand(true); |
212 | 212 |
#endregion |
213 | 213 |
|
214 |
//// EndBreak Modeling |
|
215 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "EndBreaks Modeling"); |
|
216 |
//foreach (var item in document.EndBreaks) |
|
217 |
// try |
|
218 |
// { |
|
219 |
// EndBreakModeling(item); |
|
220 |
// } |
|
221 |
// catch (Exception ex) |
|
222 |
// { |
|
223 |
// Log.Write("Error in EndBreakModeling"); |
|
224 |
// Log.Write("UID : " + item.UID); |
|
225 |
// Log.Write(ex.Message); |
|
226 |
// Log.Write(ex.StackTrace); |
|
227 |
// } |
|
228 |
|
|
229 |
|
|
230 |
//// SpecBreak Modeling |
|
231 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "SpecBreaks Modeling"); |
|
232 |
//foreach (var item in document.SpecBreaks) |
|
233 |
// try |
|
234 |
// { |
|
235 |
// SpecBreakModeling(item); |
|
236 |
// } |
|
237 |
// catch (Exception ex) |
|
238 |
// { |
|
239 |
// Log.Write("Error in SpecBreakModeling"); |
|
240 |
// Log.Write("UID : " + item.UID); |
|
241 |
// Log.Write(ex.Message); |
|
242 |
// Log.Write(ex.StackTrace); |
|
243 |
// } |
|
244 |
|
|
245 |
|
|
246 |
//// LineNumber Modeling |
|
247 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "LineNumbers Modeling"); |
|
248 |
//foreach (var item in document.LINENUMBERS) |
|
249 |
// try |
|
250 |
// { |
|
251 |
// LineNumberModeling(item); |
|
252 |
// } |
|
253 |
// catch (Exception ex) |
|
254 |
// { |
|
255 |
// Log.Write("Error in LineNumberModeling"); |
|
256 |
// Log.Write("UID : " + item.UID); |
|
257 |
// Log.Write(ex.Message); |
|
258 |
// Log.Write(ex.StackTrace); |
|
259 |
// } |
|
260 |
|
|
261 |
|
|
262 |
//// FlowMark Modeling |
|
263 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Flow Mark Modeling"); |
|
264 |
//foreach (var item in document.LINES) |
|
265 |
// try |
|
266 |
// { |
|
267 |
// FlowMarkModeling(item); |
|
268 |
// } |
|
269 |
// catch (Exception ex) |
|
270 |
// { |
|
271 |
// Log.Write("Error in FlowMarkModeling"); |
|
272 |
// Log.Write("UID : " + item.UID); |
|
273 |
// Log.Write(ex.Message); |
|
274 |
// Log.Write(ex.StackTrace); |
|
275 |
// } |
|
276 |
|
|
277 |
|
|
278 |
//// Note Symbol Modeling |
|
279 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Note Symbol Modeling"); |
|
280 |
//foreach (var item in document.SYMBOLS) |
|
281 |
// try |
|
282 |
// { |
|
283 |
// NoteSymbolModeling(item); |
|
284 |
// } |
|
285 |
// catch (Exception ex) |
|
286 |
// { |
|
287 |
// Log.Write("Error in NoteSymbolModeling"); |
|
288 |
// Log.Write("UID : " + item.UID); |
|
289 |
// Log.Write(ex.Message); |
|
290 |
// Log.Write(ex.StackTrace); |
|
291 |
// } |
|
292 |
|
|
293 |
|
|
294 |
//// Note Modeling |
|
295 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Notes Modeling"); |
|
296 |
//foreach (var item in document.NOTES) |
|
297 |
// try |
|
298 |
// { |
|
299 |
// NoteModeling(item); |
|
300 |
// } |
|
301 |
// catch (Exception ex) |
|
302 |
// { |
|
303 |
// Log.Write("Error in NoteModeling"); |
|
304 |
// Log.Write("UID : " + item.UID); |
|
305 |
// Log.Write(ex.Message); |
|
306 |
// Log.Write(ex.StackTrace); |
|
307 |
// } |
|
308 |
|
|
309 |
//// Text Modeling |
|
310 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Texts Modeling"); |
|
311 |
//foreach (var item in document.TEXTINFOS) |
|
312 |
// try |
|
313 |
// { |
|
314 |
// TextModeling(item); |
|
315 |
// } |
|
316 |
// catch (Exception ex) |
|
317 |
// { |
|
318 |
// Log.Write("Error in TextModeling"); |
|
319 |
// Log.Write("UID : " + item.UID); |
|
320 |
// Log.Write(ex.Message); |
|
321 |
// Log.Write(ex.StackTrace); |
|
322 |
// } |
|
323 |
|
|
324 |
//// Input LineNumber Attribute |
|
325 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set LineNumbers Attribute"); |
|
326 |
//foreach (var item in document.LINENUMBERS) |
|
327 |
// try |
|
328 |
// { |
|
329 |
// InputLineNumberAttribute(item); |
|
330 |
// } |
|
331 |
// catch (Exception ex) |
|
332 |
// { |
|
333 |
// Log.Write("Error in InputLineNumberAttribute"); |
|
334 |
// Log.Write("UID : " + item.UID); |
|
335 |
// Log.Write(ex.Message); |
|
336 |
// Log.Write(ex.StackTrace); |
|
337 |
// } |
|
338 |
|
|
339 |
//// Input Symbol Attribute |
|
340 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set Symbols Attribute"); |
|
341 |
//foreach (var item in document.SYMBOLS) |
|
342 |
// try |
|
343 |
// { |
|
344 |
// InputSymbolAttribute(item, item.ATTRIBUTES); |
|
345 |
// } |
|
346 |
// catch (Exception ex) |
|
347 |
// { |
|
348 |
// Log.Write("Error in InputSymbolAttribute"); |
|
349 |
// Log.Write("UID : " + item.UID); |
|
350 |
// Log.Write(ex.Message); |
|
351 |
// Log.Write(ex.StackTrace); |
|
352 |
// } |
|
353 |
|
|
354 |
//// Input SpecBreak Attribute |
|
355 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set Symbols Attribute"); |
|
356 |
//foreach (var item in document.SpecBreaks) |
|
357 |
// try |
|
358 |
// { |
|
359 |
// InputSpecBreakAttribute(item); |
|
360 |
// } |
|
361 |
// catch (Exception ex) |
|
362 |
// { |
|
363 |
// Log.Write("Error in InputSpecBreakAttribute"); |
|
364 |
// Log.Write("UID : " + item.UID); |
|
365 |
// Log.Write(ex.Message); |
|
366 |
// Log.Write(ex.StackTrace); |
|
367 |
// } |
|
368 |
|
|
369 |
//// Label Symbol Modeling |
|
370 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Labels Modeling"); |
|
371 |
//foreach (var item in document.SYMBOLS) |
|
372 |
// try |
|
373 |
// { |
|
374 |
// LabelSymbolModeling(item); |
|
375 |
// } |
|
376 |
// catch (Exception ex) |
|
377 |
// { |
|
378 |
// Log.Write("Error in LabelSymbolModeling"); |
|
379 |
// Log.Write("UID : " + item.UID); |
|
380 |
// Log.Write(ex.Message); |
|
381 |
// Log.Write(ex.StackTrace); |
|
382 |
// } |
|
383 |
|
|
384 |
//// LineRun Line Join |
|
385 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Join LineRuns"); |
|
386 |
//foreach (LineNumber lineNumber in document.LINENUMBERS) |
|
387 |
// try |
|
388 |
// { |
|
389 |
// foreach (LineRun run in lineNumber.RUNS) |
|
390 |
// JoinRunLine(run); |
|
391 |
// } |
|
392 |
// catch (Exception ex) |
|
393 |
// { |
|
394 |
// Log.Write("Error in JoinRunLine"); |
|
395 |
// Log.Write("UID : " + lineNumber.UID); |
|
396 |
// Log.Write(ex.Message); |
|
397 |
// Log.Write(ex.StackTrace); |
|
398 |
// } |
|
399 |
|
|
400 |
//// TrimLineRun Line Join |
|
401 |
//foreach (TrimLine trimLine in document.TRIMLINES) |
|
402 |
// try |
|
403 |
// { |
|
404 |
// foreach (LineRun run in trimLine.RUNS) |
|
405 |
// JoinRunLine(run); |
|
406 |
// } |
|
407 |
// catch (Exception ex) |
|
408 |
// { |
|
409 |
// Log.Write("Error in JoinRunLine"); |
|
410 |
// Log.Write("UID : " + trimLine.UID); |
|
411 |
// Log.Write(ex.Message); |
|
412 |
// Log.Write(ex.StackTrace); |
|
413 |
// } |
|
414 |
|
|
415 |
//SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetProgress, AllCount); |
|
214 |
// EndBreak Modeling |
|
215 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "EndBreaks Modeling"); |
|
216 |
foreach (var item in document.EndBreaks) |
|
217 |
try |
|
218 |
{ |
|
219 |
EndBreakModeling(item); |
|
220 |
} |
|
221 |
catch (Exception ex) |
|
222 |
{ |
|
223 |
Log.Write("Error in EndBreakModeling"); |
|
224 |
Log.Write("UID : " + item.UID); |
|
225 |
Log.Write(ex.Message); |
|
226 |
Log.Write(ex.StackTrace); |
|
227 |
} |
|
228 |
|
|
229 |
|
|
230 |
// SpecBreak Modeling |
|
231 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "SpecBreaks Modeling"); |
|
232 |
foreach (var item in document.SpecBreaks) |
|
233 |
try |
|
234 |
{ |
|
235 |
SpecBreakModeling(item); |
|
236 |
} |
|
237 |
catch (Exception ex) |
|
238 |
{ |
|
239 |
Log.Write("Error in SpecBreakModeling"); |
|
240 |
Log.Write("UID : " + item.UID); |
|
241 |
Log.Write(ex.Message); |
|
242 |
Log.Write(ex.StackTrace); |
|
243 |
} |
|
244 |
|
|
245 |
|
|
246 |
// LineNumber Modeling |
|
247 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "LineNumbers Modeling"); |
|
248 |
foreach (var item in document.LINENUMBERS) |
|
249 |
try |
|
250 |
{ |
|
251 |
LineNumberModeling(item); |
|
252 |
} |
|
253 |
catch (Exception ex) |
|
254 |
{ |
|
255 |
Log.Write("Error in LineNumberModeling"); |
|
256 |
Log.Write("UID : " + item.UID); |
|
257 |
Log.Write(ex.Message); |
|
258 |
Log.Write(ex.StackTrace); |
|
259 |
} |
|
260 |
|
|
261 |
|
|
262 |
// FlowMark Modeling |
|
263 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Flow Mark Modeling"); |
|
264 |
foreach (var item in document.LINES) |
|
265 |
try |
|
266 |
{ |
|
267 |
FlowMarkModeling(item); |
|
268 |
} |
|
269 |
catch (Exception ex) |
|
270 |
{ |
|
271 |
Log.Write("Error in FlowMarkModeling"); |
|
272 |
Log.Write("UID : " + item.UID); |
|
273 |
Log.Write(ex.Message); |
|
274 |
Log.Write(ex.StackTrace); |
|
275 |
} |
|
276 |
|
|
277 |
|
|
278 |
// Note Symbol Modeling |
|
279 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Note Symbol Modeling"); |
|
280 |
foreach (var item in document.SYMBOLS) |
|
281 |
try |
|
282 |
{ |
|
283 |
NoteSymbolModeling(item); |
|
284 |
} |
|
285 |
catch (Exception ex) |
|
286 |
{ |
|
287 |
Log.Write("Error in NoteSymbolModeling"); |
|
288 |
Log.Write("UID : " + item.UID); |
|
289 |
Log.Write(ex.Message); |
|
290 |
Log.Write(ex.StackTrace); |
|
291 |
} |
|
292 |
|
|
293 |
|
|
294 |
// Note Modeling |
|
295 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Notes Modeling"); |
|
296 |
foreach (var item in document.NOTES) |
|
297 |
try |
|
298 |
{ |
|
299 |
NoteModeling(item); |
|
300 |
} |
|
301 |
catch (Exception ex) |
|
302 |
{ |
|
303 |
Log.Write("Error in NoteModeling"); |
|
304 |
Log.Write("UID : " + item.UID); |
|
305 |
Log.Write(ex.Message); |
|
306 |
Log.Write(ex.StackTrace); |
|
307 |
} |
|
308 |
|
|
309 |
// Text Modeling |
|
310 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Texts Modeling"); |
|
311 |
foreach (var item in document.TEXTINFOS) |
|
312 |
try |
|
313 |
{ |
|
314 |
TextModeling(item); |
|
315 |
} |
|
316 |
catch (Exception ex) |
|
317 |
{ |
|
318 |
Log.Write("Error in TextModeling"); |
|
319 |
Log.Write("UID : " + item.UID); |
|
320 |
Log.Write(ex.Message); |
|
321 |
Log.Write(ex.StackTrace); |
|
322 |
} |
|
323 |
|
|
324 |
// Input LineNumber Attribute |
|
325 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set LineNumbers Attribute"); |
|
326 |
foreach (var item in document.LINENUMBERS) |
|
327 |
try |
|
328 |
{ |
|
329 |
InputLineNumberAttribute(item); |
|
330 |
} |
|
331 |
catch (Exception ex) |
|
332 |
{ |
|
333 |
Log.Write("Error in InputLineNumberAttribute"); |
|
334 |
Log.Write("UID : " + item.UID); |
|
335 |
Log.Write(ex.Message); |
|
336 |
Log.Write(ex.StackTrace); |
|
337 |
} |
|
338 |
|
|
339 |
// Input Symbol Attribute |
|
340 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set Symbols Attribute"); |
|
341 |
foreach (var item in document.SYMBOLS) |
|
342 |
try |
|
343 |
{ |
|
344 |
InputSymbolAttribute(item, item.ATTRIBUTES); |
|
345 |
} |
|
346 |
catch (Exception ex) |
|
347 |
{ |
|
348 |
Log.Write("Error in InputSymbolAttribute"); |
|
349 |
Log.Write("UID : " + item.UID); |
|
350 |
Log.Write(ex.Message); |
|
351 |
Log.Write(ex.StackTrace); |
|
352 |
} |
|
353 |
|
|
354 |
// Input SpecBreak Attribute |
|
355 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Set Symbols Attribute"); |
|
356 |
foreach (var item in document.SpecBreaks) |
|
357 |
try |
|
358 |
{ |
|
359 |
InputSpecBreakAttribute(item); |
|
360 |
} |
|
361 |
catch (Exception ex) |
|
362 |
{ |
|
363 |
Log.Write("Error in InputSpecBreakAttribute"); |
|
364 |
Log.Write("UID : " + item.UID); |
|
365 |
Log.Write(ex.Message); |
|
366 |
Log.Write(ex.StackTrace); |
|
367 |
} |
|
368 |
|
|
369 |
// Label Symbol Modeling |
|
370 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Labels Modeling"); |
|
371 |
foreach (var item in document.SYMBOLS) |
|
372 |
try |
|
373 |
{ |
|
374 |
LabelSymbolModeling(item); |
|
375 |
} |
|
376 |
catch (Exception ex) |
|
377 |
{ |
|
378 |
Log.Write("Error in LabelSymbolModeling"); |
|
379 |
Log.Write("UID : " + item.UID); |
|
380 |
Log.Write(ex.Message); |
|
381 |
Log.Write(ex.StackTrace); |
|
382 |
} |
|
383 |
|
|
384 |
// LineRun Line Join |
|
385 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Join LineRuns"); |
|
386 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
|
387 |
try |
|
388 |
{ |
|
389 |
foreach (LineRun run in lineNumber.RUNS) |
|
390 |
JoinRunLine(run); |
|
391 |
} |
|
392 |
catch (Exception ex) |
|
393 |
{ |
|
394 |
Log.Write("Error in JoinRunLine"); |
|
395 |
Log.Write("UID : " + lineNumber.UID); |
|
396 |
Log.Write(ex.Message); |
|
397 |
Log.Write(ex.StackTrace); |
|
398 |
} |
|
399 |
|
|
400 |
// TrimLineRun Line Join |
|
401 |
foreach (TrimLine trimLine in document.TRIMLINES) |
|
402 |
try |
|
403 |
{ |
|
404 |
foreach (LineRun run in trimLine.RUNS) |
|
405 |
JoinRunLine(run); |
|
406 |
} |
|
407 |
catch (Exception ex) |
|
408 |
{ |
|
409 |
Log.Write("Error in JoinRunLine"); |
|
410 |
Log.Write("UID : " + trimLine.UID); |
|
411 |
Log.Write(ex.Message); |
|
412 |
Log.Write(ex.StackTrace); |
|
413 |
} |
|
416 | 414 |
} |
417 | 415 |
} |
418 | 416 |
catch (Exception ex) |
내보내기 Unified diff