개정판 cf924377
dev issue #000 : Label Symbol LEADERLINE 설정/ Symbol Mapping Table Column추가로 인하여 접속시 확인후 Table Column추가
Change-Id: I7e1fc5c669039fc21ceb8a40578f05493bfc6da6
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
216 | 216 |
|
217 | 217 |
if (!string.IsNullOrEmpty(sRep)) |
218 | 218 |
{ |
219 |
bool leaderLine = false; |
|
220 |
SymbolMapping symbolMapping = document.SymbolMappings.Find(x => x.UID == item.DBUID); |
|
221 |
if (symbolMapping != null) |
|
222 |
leaderLine = symbolMapping.LEADERLINE; |
|
223 |
|
|
219 | 224 |
LMSymbol _TargetItem = dataSource.GetSymbol(sRep); |
220 |
LMLabelPersist _LMLabelPresist = _placement.PIDPlaceLabel(item.SPPID.MAPPINGNAME, ref points, Rotation: 0, LabeledItem: _TargetItem.AsLMRepresentation(), IsLeaderVisible: true);
|
|
225 |
LMLabelPersist _LMLabelPresist = _placement.PIDPlaceLabel(item.SPPID.MAPPINGNAME, ref points, Rotation: 0, LabeledItem: _TargetItem.AsLMRepresentation(), IsLeaderVisible: leaderLine);
|
|
221 | 226 |
LMModelItem _LMModelItem = _TargetItem.ModelItemObject; |
222 | 227 |
LMAAttributes _Attributes = _LMModelItem.Attributes; |
223 | 228 |
|
... | ... | |
247 | 252 |
} |
248 | 253 |
} |
249 | 254 |
|
255 |
//Leader 선 센터로 |
|
250 | 256 |
string OID = _LMLabelPresist.get_GraphicOID(); |
251 | 257 |
DependencyObject dependency = radApp.ActiveDocument.ActiveSheet.DrawingObjects[OID] as DependencyObject; |
252 | 258 |
if (dependency != null) |
내보내기 Unified diff