1.移除一个bug。
2.删除最后一次的塔位,并放置新的塔位。 Signed-off-by: facat <facat@facat.com>
This commit is contained in:
parent
736b6ff2f8
commit
7ce4357fbe
|
|
@ -93,8 +93,15 @@ namespace PutTowerPosition
|
|||
{
|
||||
DBText latestTowerName = acTrans.GetObject(tower.name, OpenMode.ForWrite) as DBText;
|
||||
DBPoint latestTowerPoint = acTrans.GetObject(tower.point, OpenMode.ForWrite) as DBPoint;
|
||||
latestTowerName.Erase();
|
||||
latestTowerPoint.Erase();
|
||||
if (latestTowerName != null)
|
||||
{
|
||||
latestTowerName.Erase();
|
||||
}
|
||||
if (latestTowerPoint != null)
|
||||
{
|
||||
latestTowerPoint.Erase();
|
||||
}
|
||||
|
||||
}
|
||||
latestTowerList.Clear();
|
||||
|
||||
|
|
@ -308,7 +315,10 @@ namespace PutTowerPosition
|
|||
}
|
||||
string norm_line;
|
||||
norm_line = Regex.Replace(line, @"\s+", ",");
|
||||
norm_line = norm_line.Substring(1);
|
||||
if (norm_line.StartsWith(","))
|
||||
{
|
||||
norm_line = norm_line.Substring(1);
|
||||
}
|
||||
string[] sep = norm_line.Split(',');
|
||||
string towerName = sep[0];
|
||||
if (has_tower.ContainsKey(towerName))
|
||||
|
|
|
|||
Loading…
Reference in New Issue