TurnoutSetCustomParameterValue Method |
Set custom parameter value into turnout settings.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic void SetCustomParameterValue(
string name,
Object value
)
Public Sub SetCustomParameterValue (
name As String,
value As Object
)
public:
void SetCustomParameterValue(
String^ name,
Object^ value
)
Parameters
- name String
- Custom parameter name.
- value Object
- Value for custom parameter.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- 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.
|
InvalidOperationException |
Throw when:
- Turnout.AutomaticUpdate is false.
- 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