BaselineImportTransitions Method

Import transitions from a csv file. The imported transitions will be applied to baseline automatically.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public int ImportTransitions(
	string csvFileName
)

Parameters

csvFileName  String
File name with directory or not. File path can be either local or network.

Return Value

Int32
The count of transition sets which has been imported and applied.
Exceptions
ExceptionCondition
ArgumentException Thrown when: 1. File name is empty. 2. File doesn't exist. 3. File extension is not .csv.
Exception Thrown when: 1. Invalid version in csv fle. 2. No version info in csv file. 3. Header is duplicate in csv file. 4. Header is missing in csv file. 5. Other error cases when parsing csv file.
Remarks
If there are invalid data in csv file, e.g.: 1. The transition set doesn't have a name. 2. The subassembly name is not found in the current corridor/baseline. 3. The parameter name is not found on the given subassembly in the current corridor/baseline. 4. The end station is smaller than the start station. 5. Etc.. Then waring messages or error messages when importing will be shown on event viewer. If the API is called without UI, then warning messages can't be seen.
See Also