アセンブリ横断は、基線に沿って一定間隔で配置されます。基線に沿って配置されているアセンブリのすべての測点のリストは、Baseline.SortedStations() メソッドを使用して取得できます。基線リージョン上のすべての測点は、BaselineRegion.SortedStations() メソッドを使用して取得できます。
double[] stations = oBaselineRegion.SortedStations(); ed.WriteMessage("Baseline Region stations: \n"); foreach (double station in stations){ ed.WriteMessage("\tStation: {0}\n", station); }
AddStation() メソッドを使用すると、新しい測点を基線リージョンに追加できます。DeleteStation メソッドを使用すると、既存の測点を削除できます。 DeleteStation には、一定範囲内の測点を指定するオプションの tolerance パラメータが含まれています。BaselineRegion.GetAdditionalStation メソッドを使用すると、基線リージョンに追加されたすべての測点のリストを取得できます。BaselineRegion.ClearAdditionalStations を使用すると、基線リージョンに追加されたすべての測点を削除し、一定間隔で作成された元の測点だけを残すことができます。
// Add an assembly to the middle of the baseline region double newStation = oBaselineRegion.StartStation + ((oBaselineRegion.EndStation - oBaselineRegion.StartStation) / 2); oBaselineRegion.AddStation(newStation, "New Station"); ed.WriteMessage("Added New Station: {0}", newStation); // Remove the station located at the beginning of the baseline region: oBaselineRegion.DeleteStation(oBaselineRegion.StartStation);