ParameterAttribute.DefaultValue
property · ParameterAttribute · cAlgo.API
DesktopCLICloud
Gets or sets the default value of this Parameter property.
Definition
public object DefaultValue {get; set;}
parameterAttribute.DefaultValue: object
Returns object
Examples
public partial class ParameterSample : Robot
{
protected override void OnStart()
{
Print("Periods: {0}, Label: {1}", Periods, Label);
}
}
def on_start(self):
api.Print(f"Periods: {api.Periods}, Label: {api.Label}")
{
"AccessRights": "None",
"Parameters": [
{
"Name": "Periods",
"Type": "Integer",
"DefaultValue": 14
},
{
"Name": "Label",
"Type": "String",
"DefaultValue": "myLabel"
}
]
}