@@ -93,9 +93,16 @@ namespace PutTowerPosition
|
||||
{
|
||||
DBText latestTowerName = acTrans.GetObject(tower.name, OpenMode.ForWrite) as DBText;
|
||||
DBPoint latestTowerPoint = acTrans.GetObject(tower.point, OpenMode.ForWrite) as DBPoint;
|
||||
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+", ",");
|
||||
if (norm_line.StartsWith(","))
|
||||
{
|
||||
norm_line = norm_line.Substring(1);
|
||||
}
|
||||
string[] sep = norm_line.Split(',');
|
||||
string towerName = sep[0];
|
||||
if (has_tower.ContainsKey(towerName))
|
||||
|
||||
Reference in New Issue
Block a user