개정판 06b40010
dev issue #497 : Snap Grid 기능 추가 (SPPID 도면만 현재 가능)
Change-Id: If1fd23c7e22a18f95054160fe12914ed0384bc4b
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
451 | 451 |
SlopeType slopeType = SPPIDUtil.CalcSlope(x, y, prevSymbol.SPPID.ORIGINAL_X, prevSymbol.SPPID.ORIGINAL_Y); |
452 | 452 |
double prevX = _PrevSymbol.get_XCoordinate(); |
453 | 453 |
double prevY = _PrevSymbol.get_YCoordinate(); |
454 |
if (slopeType == SlopeType.HORIZONTAL) |
|
455 |
y = prevY; |
|
456 |
else if (slopeType == SlopeType.VERTICAL) |
|
457 |
x = prevX; |
|
454 |
//if (slopeType == SlopeType.HORIZONTAL) |
|
455 |
// y = prevY; |
|
456 |
//else if (slopeType == SlopeType.VERTICAL) |
|
457 |
// x = prevX; |
|
458 |
ReleaseCOMObjects(_PrevSymbol); |
|
458 | 459 |
_LMSymbol = _placement.PIDPlaceSymbol(mappingPath, x, y, Mirror: mirror, Rotation: angle); |
459 | 460 |
} |
460 | 461 |
else |
내보내기 Unified diff