개정판 1efc25a3
dev issue #000 : associate => attribute
Change-Id: I2bf842031c85571f2539b2cd0b1433bff0a29d0c
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
49 | 49 |
//Thread.Sleep(100); |
50 | 50 |
try |
51 | 51 |
{ |
52 |
// Equipment Modeling |
|
52 | 53 |
foreach (Equipment equipment in document.Equipments) |
53 | 54 |
{ |
54 | 55 |
SymbolModeling(equipment as Symbol, null, null); |
55 | 56 |
} |
56 |
|
|
57 |
// LineRun Symbol Modeling |
|
57 | 58 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
58 | 59 |
{ |
59 | 60 |
foreach (LineRun run in lineNumber.RUNS) |
... | ... | |
61 | 62 |
SymbolModelingByRun(run); |
62 | 63 |
} |
63 | 64 |
} |
64 |
|
|
65 |
// TrimLineRun Symbol Modeling |
|
65 | 66 |
foreach (TrimLine trimLine in document.TRIMLINES) |
66 | 67 |
{ |
67 | 68 |
foreach (LineRun run in trimLine.RUNS) |
... | ... | |
69 | 70 |
SymbolModelingByRun(run); |
70 | 71 |
} |
71 | 72 |
} |
72 |
|
|
73 |
// LineRun Line Modeling |
|
73 | 74 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
74 | 75 |
{ |
75 | 76 |
foreach (LineRun run in lineNumber.RUNS) |
... | ... | |
77 | 78 |
LineModelingByRun(run); |
78 | 79 |
} |
79 | 80 |
} |
80 |
|
|
81 |
// TrimLineRun Line Modeling |
|
81 | 82 |
foreach (TrimLine trimLine in document.TRIMLINES) |
82 | 83 |
{ |
83 | 84 |
foreach (LineRun run in trimLine.RUNS) |
... | ... | |
85 | 86 |
LineModelingByRun(run); |
86 | 87 |
} |
87 | 88 |
} |
88 |
|
|
89 |
// Branch Line Modeling |
|
89 | 90 |
foreach (var item in BranchLines) |
90 | 91 |
{ |
91 | 92 |
BranchLineModeling(item); |
92 | 93 |
} |
93 |
|
|
94 |
// EndBreak Modeling |
|
94 | 95 |
foreach (var item in document.EndBreaks) |
95 | 96 |
{ |
96 | 97 |
EndBreakModeling(item); |
97 | 98 |
} |
98 |
|
|
99 |
// LineNumber Modeling |
|
99 | 100 |
foreach (var item in document.LINENUMBERS) |
100 | 101 |
{ |
101 | 102 |
LineNumberModeling(item); |
102 | 103 |
} |
104 |
// Input Symbol Attribute |
|
105 |
foreach (var item in document.SYMBOLS) |
|
106 |
{ |
|
107 |
InputSymbolAttribute(item); |
|
108 |
} |
|
109 |
// Input Line Attribute |
|
103 | 110 |
|
111 |
// Input LineNumber Attribute |
|
104 | 112 |
|
113 |
// Note Modeling |
|
105 | 114 |
|
115 |
// Text Modeling |
|
116 |
|
|
117 |
// LineRun Line Join |
|
106 | 118 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
107 | 119 |
{ |
108 | 120 |
|
... | ... | |
111 | 123 |
JoinRunLine(run); |
112 | 124 |
} |
113 | 125 |
} |
114 |
|
|
126 |
// TrimLineRun Line Join |
|
115 | 127 |
foreach (TrimLine trimLine in document.TRIMLINES) |
116 | 128 |
{ |
117 | 129 |
foreach (LineRun run in trimLine.RUNS) |
... | ... | |
1060 | 1072 |
} |
1061 | 1073 |
} |
1062 | 1074 |
|
1075 |
private void InputSymbolAttribute(Symbol symbol) |
|
1076 |
{ |
|
1077 |
if (!string.IsNullOrEmpty(symbol.SPPID.RepresentationId)) |
|
1078 |
{ |
|
1079 |
foreach (var item in symbol.PROPERTIES) |
|
1080 |
{ |
|
1081 |
|
|
1082 |
|
|
1083 |
} |
|
1084 |
|
|
1085 |
foreach (var item in symbol.ATTRIBUTES) |
|
1086 |
{ |
|
1087 |
|
|
1088 |
|
|
1089 |
} |
|
1090 |
} |
|
1091 |
} |
|
1092 |
|
|
1093 |
|
|
1094 |
|
|
1063 | 1095 |
private void TextModeling(Text text) |
1064 | 1096 |
{ |
1065 | 1097 |
|
내보내기 Unified diff