개정판 d9933788
Set to change TypicalMode for Find function (temporary code until the right code is found)
Change-Id: I660c4123a19ab1edc2b34ba5d44390ccf7891198
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
90 | 90 |
/// </summary> |
91 | 91 |
public void Run() |
92 | 92 |
{ |
93 |
this.passTypicalMode = false; |
|
93 | 94 |
string drawingNumber = document.DrawingNumber; |
94 | 95 |
string drawingName = document.DrawingName; |
95 | 96 |
try |
... | ... | |
198 | 199 |
} |
199 | 200 |
finally |
200 | 201 |
{ |
201 |
if (!passTypicalMode) |
|
202 |
radApp.Interactive = true; |
|
203 |
|
|
204 |
if (!this.passTypicalMode) |
|
202 | 205 |
{ |
203 | 206 |
try |
204 | 207 |
{ |
... | ... | |
253 | 256 |
} |
254 | 257 |
} |
255 | 258 |
|
256 |
radApp.Interactive = true; |
|
257 |
|
|
258 | 259 |
Project_DB.InsertDrawingInfoAndOPCInfo(document.PATH, drawingNumber, drawingName, document); |
259 | 260 |
//Project_DB.InsertLineNumberInfo(document.PATH, drawingNumber, drawingName, document); |
260 | 261 |
|
... | ... | |
264 | 265 |
SplashScreenManager.CloseForm(false); |
265 | 266 |
Log.Write("\r\n"); |
266 | 267 |
} |
267 |
Thread.Sleep(1000); |
|
268 |
|
|
269 | 268 |
Log.Write("End Modeling"); |
270 | 269 |
radApp.ActiveWindow.Fit(); |
271 | 270 |
|
271 |
Thread.Sleep(1000); |
|
272 |
|
|
272 | 273 |
ReleaseCOMObjects(application); |
273 | 274 |
application = null; |
274 | 275 |
if (radApp.ActiveDocument != null) |
... | ... | |
554 | 555 |
// 제거 |
555 | 556 |
RemoveSymbol(connSymbol); |
556 | 557 |
RemoveLine(item); |
557 |
passTypicalMode = true; |
|
558 |
this.passTypicalMode = true;
|
|
558 | 559 |
|
559 | 560 |
// 재생성 |
560 | 561 |
SymbolModelingBySymbol(connSymbol); |
... | ... | |
2395 | 2396 |
double scaleFactor = width / cWidth; |
2396 | 2397 |
smartFrame.ScaleFactor = scaleFactor; |
2397 | 2398 |
smartFrame.SetOrigin(graphic.SPPIDGraphicLocation.X1, graphic.SPPIDGraphicLocation.Y1); |
2399 |
graphic.SPPID.RepresentationId = smartFrame.Index.ToString(); |
|
2398 | 2400 |
} |
2399 | 2401 |
|
2400 | 2402 |
/// <summary> |
내보내기 Unified diff