@@ -93,8 +93,15 @@ namespace PutTowerPosition
|
|||||||
{
|
{
|
||||||
DBText latestTowerName = acTrans.GetObject(tower.name, OpenMode.ForWrite) as DBText;
|
DBText latestTowerName = acTrans.GetObject(tower.name, OpenMode.ForWrite) as DBText;
|
||||||
DBPoint latestTowerPoint = acTrans.GetObject(tower.point, OpenMode.ForWrite) as DBPoint;
|
DBPoint latestTowerPoint = acTrans.GetObject(tower.point, OpenMode.ForWrite) as DBPoint;
|
||||||
latestTowerName.Erase();
|
if (latestTowerName != null)
|
||||||
latestTowerPoint.Erase();
|
{
|
||||||
|
latestTowerName.Erase();
|
||||||
|
}
|
||||||
|
if (latestTowerPoint != null)
|
||||||
|
{
|
||||||
|
latestTowerPoint.Erase();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
latestTowerList.Clear();
|
latestTowerList.Clear();
|
||||||
|
|
||||||
@@ -308,7 +315,10 @@ namespace PutTowerPosition
|
|||||||
}
|
}
|
||||||
string norm_line;
|
string norm_line;
|
||||||
norm_line = Regex.Replace(line, @"\s+", ",");
|
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[] sep = norm_line.Split(',');
|
||||||
string towerName = sep[0];
|
string towerName = sep[0];
|
||||||
if (has_tower.ContainsKey(towerName))
|
if (has_tower.ContainsKey(towerName))
|
||||||
|
|||||||
Reference in New Issue
Block a user