Skip to content

RobotStartDialog.RobotType

property · RobotStartDialog · cAlgo.API Since 5.1

DesktopCLICloud

Gets or sets the Robot Type.

Environment behaviour

CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns without showing anything.

Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns without showing anything.

Definition

public RobotType RobotType {get; set;}
robotStartDialog.RobotType: RobotType

Returns RobotType

Examples

if (AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot) is RobotType robotType)
{
    var robotStartDialog = new RobotStartDialog(robotType);
    Print("Dialog cBot: {0}", robotStartDialog.RobotType.Name);
}
algoType = api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot)
if algoType is not None:
    robotStartDialog = RobotStartDialog(RobotType(algoType))
    api.Print(f"Dialog cBot: {robotStartDialog.RobotType.Name}")