개정판 16584d30
dev issue #366 : SpecBreakModeling 완료
Change-Id: Icd84c16676843543fd861e5701cfc8f6b2806f8f
DTI_PID/SPPIDConverter/ConverterDocking.cs | ||
---|---|---|
138 | 138 |
Placement _placement = new Placement(); |
139 | 139 |
LMADataSource dataSource = new LMADataSource();//placement.PIDDataSource; |
140 | 140 |
|
141 |
string modelItemId = "76D079A9B3694A4AA46B46602729CE3F";
|
|
141 |
string modelItemId = "1D6CF009BFCB46BFA78ADEEBA09B2E07";
|
|
142 | 142 |
LMModelItem modelItem = dataSource.GetModelItem(modelItemId); |
143 | 143 |
_LMAItem item = modelItem.AsLMAItem(); |
144 | 144 |
try |
145 | 145 |
{ |
146 |
string modelitemID = item.Id; |
|
147 |
_placement.PIDAutoJoin(item, AutoJoinEndConstants.autoJoin_Both, ref item); |
|
148 |
string afterModelItemID = item.Id; |
|
149 |
|
|
150 |
if (modelitemID != afterModelItemID) |
|
146 |
foreach (LMRepresentation rep in modelItem.Representations) |
|
151 | 147 |
{ |
148 |
if (rep.Attributes["RepresentationType"].get_Value() == "Connector" && rep.Attributes["ItemStatus"].get_Value() == "Active") |
|
149 |
{ |
|
150 |
LMConnector _LMConnector = dataSource.GetConnector(rep.Id); |
|
152 | 151 |
|
152 |
|
|
153 |
} |
|
153 | 154 |
} |
154 |
item.Commit(); |
|
155 | 155 |
} |
156 | 156 |
catch (Exception ex) |
157 | 157 |
{ |
내보내기 Unified diff