개정판 bd474049
Fix Line Scope Disconnection.
Change-Id: I01d18a51bfc30a8827148935f420dd39c18ce25e
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
2642 | 2642 |
{ |
2643 | 2643 |
foreach (LMConnector item in lMSymbolStart.Connect1Connectors) |
2644 | 2644 |
{ |
2645 |
if (item.Attributes["ItemStatus"].get_Value() == "Active" && item.Attributes["IsZeroLength"].get_Value() == "True") |
|
2645 |
LMModelItem modelItem = dataSource.GetModelItem(item.ModelItemID); |
|
2646 |
string symbolPath = GetSPPIDFileName(modelItem); |
|
2647 |
if (currentLine.SPPID.MAPPINGNAME == symbolPath && item.Attributes["ItemStatus"].get_Value() == "Active" && item.Attributes["IsZeroLength"].get_Value() == "True") |
|
2646 | 2648 |
{ |
2647 | 2649 |
targetModelItemId = item.ModelItemID; |
2648 | 2650 |
break; |
... | ... | |
2650 | 2652 |
} |
2651 | 2653 |
foreach (LMConnector item in lMSymbolStart.Connect2Connectors) |
2652 | 2654 |
{ |
2653 |
if (item.Attributes["ItemStatus"].get_Value() == "Active" && item.Attributes["IsZeroLength"].get_Value() == "True") |
|
2655 |
LMModelItem modelItem = dataSource.GetModelItem(item.ModelItemID); |
|
2656 |
string symbolPath = GetSPPIDFileName(modelItem); |
|
2657 |
if (currentLine.SPPID.MAPPINGNAME == symbolPath && item.Attributes["ItemStatus"].get_Value() == "Active" && item.Attributes["IsZeroLength"].get_Value() == "True") |
|
2654 | 2658 |
{ |
2655 | 2659 |
targetModelItemId = item.ModelItemID; |
2656 | 2660 |
break; |
2657 | 2661 |
} |
2658 | 2662 |
} |
2659 | 2663 |
|
2660 |
placeRunInputs.AddSymbolTarget(lMSymbolStart, x, y, diagonal); |
|
2664 |
if (targetModelItemId != null) |
|
2665 |
{ |
|
2666 |
placeRunInputs.AddSymbolTarget(lMSymbolStart, x, y, diagonal); |
|
2667 |
} |
|
2668 |
else |
|
2669 |
{ |
|
2670 |
placeRunInputs.AddPoint(x, y); |
|
2671 |
} |
|
2661 | 2672 |
} |
2662 | 2673 |
else |
2663 | 2674 |
placeRunInputs.AddPoint(x, y); |
DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs | ||
---|---|---|
677 | 677 |
|
678 | 678 |
return result; |
679 | 679 |
} |
680 |
public static void test() |
|
680 |
public static void test(string representationId)
|
|
681 | 681 |
{ |
682 | 682 |
Placement placement = new Placement(); |
683 | 683 |
LMADataSource dataSource = new LMADataSource(); |
684 |
LMSymbol symbol = dataSource.GetSymbol("BBAB475FA9AF4C01AACF4C51F56241F8");
|
|
684 |
LMSymbol symbol = dataSource.GetSymbol(representationId);
|
|
685 | 685 |
|
686 | 686 |
string[] array1 = new string[] { "", "Top" }; |
687 | 687 |
string[] array2 = new string[] { "", "0.005" }; |
내보내기 Unified diff