TurnoutSetCustomParameterValue Method

Set custom parameter value into turnout settings.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public void SetCustomParameterValue(
	string name,
	Object value
)

Parameters

name  String
Custom parameter name.
value  Object
Value for custom parameter.
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. Can not find parameter from custom parameter list.
  2. Can not support the parameter type if it is not one of the types: Number, String, Enum.
  3. If the parameter is in Number type, parameter value requires double type .
  4. If the parameter is in String or Enum type, parameter value requires string type.
  5. If the parameter is in Number type, parameter value is invalid and out of scope.
  6. If the parameter is in Enum type, parameter value is invalid and not a correct enum string.
InvalidOperationException Throw when:
  1. Turnout.AutomaticUpdate is false.
  2. Fail to set the custom parameter's value.
Remarks
This method sets custom parameter value into turnout settings. If the parameter is number type, the value must be in double type. If the parameter is string type, the value must be in string type. If the parameter is enum type, the value must be in string type and it is the global name of the enum item.
See Also