개정판 f7fbb5f3
end break position fix added
Change-Id: Ia8f1bd6ee1dba46b097a57a17834d43f21302e2c
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
3117 | 3117 |
array = new double[] { 0, point[0], point[1] }; |
3118 | 3118 |
else |
3119 | 3119 |
array = new double[] { 0, endBreak.SPPID.ORIGINAL_X, endBreak.SPPID.ORIGINAL_Y }; |
3120 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: leaderLine); |
|
3120 |
|
|
3121 |
LMLabelPersist _LmLabelPersist; |
|
3122 |
|
|
3123 |
Property property = endBreak.PROPERTIES.Find(loop => loop.ATTRIBUTE == "Freeze"); |
|
3124 |
if (property != null && !string.IsNullOrEmpty(property.VALUE) && property.VALUE.Equals("True")) |
|
3125 |
{ |
|
3126 |
_LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, null, Rotation: endBreak.ANGLE, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: leaderLine); |
|
3127 |
} |
|
3128 |
else |
|
3129 |
{ |
|
3130 |
_LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, null, null, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: leaderLine); |
|
3131 |
} |
|
3132 |
|
|
3121 | 3133 |
if (_LmLabelPersist != null) |
3122 | 3134 |
{ |
3123 | 3135 |
_LmLabelPersist.Commit(); |
... | ... | |
3129 | 3141 |
MoveDependencyObject(endBreak.SPPID.GraphicOID, location); |
3130 | 3142 |
|
3131 | 3143 |
// end break arrange |
3132 |
MoveSegmentBreak(_LmLabelPersist.RepresentationObject.Id, _LmLabelPersist); |
|
3144 |
if (property == null || string.IsNullOrEmpty(property.VALUE) || !property.VALUE.Equals("True")) |
|
3145 |
{ |
|
3146 |
MoveSegmentBreak(_LmLabelPersist.RepresentationObject.Id, _LmLabelPersist); |
|
3147 |
} |
|
3133 | 3148 |
|
3134 | 3149 |
ReleaseCOMObjects(_LmLabelPersist); |
3135 | 3150 |
} |
내보내기 Unified diff