TurnoutCreate Method

Create a turnout by creation parameters.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	string turnoutName,
	TurnoutCreationParams creationParams
)

Parameters

turnoutName  String
 
creationParams  TurnoutCreationParams
creation parameters to create a turnout.

Return Value

ObjectId
Exceptions
ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • Turnout name is null or whitespace or duplicate with a turnout in dwg.
  • MainProfileId is not the profile id of main alignment if MainProfileId exists.
  • TurnoutModelName cannot be found in turnout catalog.
  • TurnoutTypeName cannot be found in turnout catalog.
  • InsertionPointEntry or InsertionPoint cannot be found in turnout type.
  • Can not find parameter from custom parameter list.
  • Can not support the parameter type if it is not one of the types: Number, String, Enum.
  • If the parameter is in Number type, parameter value requires double type .
  • If the parameter is in String or Enum type, parameter value requires string type.
  • If the parameter is in Number type, parameter value is invalid and out of scope.
  • If the parameter is in Enum type, parameter value is invalid and not a correct enum string.
  • Cannot find the entry of merge alignment or merge profile in turnout type.
  • Turnout has no merge alignment for an entry but has merge profile for the entry.
  • Turnout create a diverted profile or merge into a profile with invalid main profile id.
  • Turnout merge alignments count or turnout merge profiles count is more than turnout entries count.
  • Turnout merge alignment is turnout main alignment.
  • Turnout merge profile id is main profile id or merge profile is not the profile of merge alignment.
  • Turnout ReferenceStation is not in the range of main alignment stations.
Remarks
ObjectId TYPE: Autodesk.Civil.DatabaseServices.Turnout.
See Also