개정판 c5b2c7ff
dev issue #507 : bring to from flowmark / specbreak modeling
Change-Id: I1502ab6251a366c2381a17e4fedbcf898695b6cf
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
43 | 43 |
List<string> ZeroLengthModelItemID = new List<string>(); |
44 | 44 |
List<string> ZeroLengthModelItemIDReverse = new List<string>(); |
45 | 45 |
List<Symbol> prioritySymbols; |
46 |
List<string> FlowMarkRepIds = new List<string>(); |
|
46 | 47 |
|
47 | 48 |
public AutoModeling(SPPID_Document document, bool closeDocument) |
48 | 49 |
{ |
... | ... | |
88 | 89 |
Log.Write("Start Modeling"); |
89 | 90 |
SplashScreenManager.ShowForm(typeof(SPPIDSplashScreen), true, true); |
90 | 91 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetParent, (IntPtr)radApp.HWnd); |
91 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllStepCount, 23);
|
|
92 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllStepCount, 24);
|
|
92 | 93 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetDocumentName, DocumentLabelText); |
93 | 94 |
|
94 | 95 |
// VendorPackage Modeling |
... | ... | |
129 | 130 |
RunLabelSymbolModeling(); |
130 | 131 |
// Correct Text |
131 | 132 |
RunCorrectAssociationText(); |
133 |
// ETC |
|
134 |
RunETC(); |
|
132 | 135 |
|
133 | 136 |
// Result Logging |
134 | 137 |
document.CheckModelingResult(); |
... | ... | |
901 | 904 |
} |
902 | 905 |
} |
903 | 906 |
} |
907 |
private void RunETC() |
|
908 |
{ |
|
909 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, FlowMarkRepIds.Count); |
|
910 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "ETC"); |
|
911 |
foreach (var item in FlowMarkRepIds) |
|
912 |
{ |
|
913 |
LMLabelPersist label = dataSource.GetLabelPersist(item); |
|
914 |
if (label != null) |
|
915 |
{ |
|
916 |
label.get_GraphicOID(); |
|
917 |
DependencyObject dependency = radApp.ActiveDocument.ActiveSheet.DrawingObjects[label.get_GraphicOID().ToString()] as DependencyObject; |
|
918 |
if (dependency != null) |
|
919 |
dependency.BringToFront(); |
|
920 |
} |
|
921 |
ReleaseCOMObjects(label); |
|
922 |
label = null; |
|
923 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.UpProgress, null); |
|
924 |
} |
|
925 |
} |
|
904 | 926 |
/// <summary> |
905 | 927 |
/// 도면 생성 메서드 |
906 | 928 |
/// </summary> |
... | ... | |
2966 | 2988 |
specBreak.SPPID.GraphicOID = _LmLabelPersist.get_GraphicOID().ToString(); |
2967 | 2989 |
ReleaseCOMObjects(_LmLabelPersist); |
2968 | 2990 |
} |
2991 |
|
|
2992 |
// temp |
|
2993 |
ReleaseCOMObjects(_placement.PIDPlaceSymbol(@"\Design\Annotation\Graphics\Break.sym", specBreak.SPPID.ORIGINAL_X, specBreak.SPPID.ORIGINAL_Y, Rotation: specBreak.ANGLE)); |
|
2969 | 2994 |
} |
2970 | 2995 |
} |
2971 | 2996 |
ReleaseCOMObjects(targetLMConnector); |
... | ... | |
4268 | 4293 |
if (_LMLabelPersist != null) |
4269 | 4294 |
{ |
4270 | 4295 |
_LMLabelPersist.Commit(); |
4296 |
FlowMarkRepIds.Add(_LMLabelPersist.Id); |
|
4271 | 4297 |
ReleaseCOMObjects(_LMLabelPersist); |
4272 | 4298 |
} |
4273 |
|
|
4274 | 4299 |
} |
4275 | 4300 |
} |
4276 | 4301 |
} |
내보내기 Unified diff