개정판 475071f2
dev issue #1225 : text model and fix label angle
Change-Id: I6d4a27d4cf015d863e3e3595d92ccfba81774bd2
DTI_PID/APIDConverter/Model/PlantItem/Document.cs | ||
---|---|---|
685 | 685 |
item.Aveva.X = x; |
686 | 686 |
item.Aveva.Y = y; |
687 | 687 |
item.Aveva.LabelType = LabelType.LineNumber; |
688 |
item.Aveva.Angle = RadianToDegree(item.ANGLE); |
|
688 | 689 |
} |
689 | 690 |
|
690 | 691 |
return result; |
... | ... | |
701 | 702 |
y = Convert.ToDouble(drawingSizeHeight / id2Height * Convert.ToDecimal(y)); |
702 | 703 |
} |
703 | 704 |
|
705 |
private double RadianToDegree(double angle) |
|
706 |
{ |
|
707 |
return angle * (180.0 / Math.PI); |
|
708 |
} |
|
709 |
|
|
704 | 710 |
#endregion |
705 | 711 |
} |
706 | 712 |
} |
내보내기 Unified diff