개정판 e0828ff4
dev issue #000 : fix end break leaderline
Change-Id: I5054089a71616d2b0251ba2cd1fe31a76b66e8bd
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
2956 | 2956 |
|
2957 | 2957 |
if (targetLMConnector != null) |
2958 | 2958 |
{ |
2959 |
// LEADER Line 검사 |
|
2960 |
bool leaderLine = false; |
|
2961 |
SymbolMapping symbolMapping = document.SymbolMappings.Find(x => x.UID == endBreak.DBUID); |
|
2962 |
if (symbolMapping != null) |
|
2963 |
leaderLine = symbolMapping.LEADERLINE; |
|
2964 |
|
|
2959 | 2965 |
double[] point = GetSegmentPoint(ownerObj, connectedItem, targetLMConnector); |
2960 | 2966 |
Array array = null; |
2961 | 2967 |
if (point != null) |
2962 | 2968 |
array = new double[] { 0, point[0], point[1] }; |
2963 | 2969 |
else |
2964 | 2970 |
array = new double[] { 0, endBreak.SPPID.ORIGINAL_X, endBreak.SPPID.ORIGINAL_Y }; |
2965 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: true);
|
|
2971 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: leaderLine);
|
|
2966 | 2972 |
if (_LmLabelPersist != null) |
2967 | 2973 |
{ |
2968 | 2974 |
_LmLabelPersist.Commit(); |
내보내기 Unified diff