MotorXP-AFM Scripting API
    Preparing search index...

    Interface MotorElement

    Built-in motor object

    interface MotorElement {
        airgap: AirgapElement;
        debugMode: boolean;
        debugModeChanged: SignalConnector<boolean>;
        developerMode: boolean;
        developerModeChanged: SignalConnector<boolean>;
        machineType: Motor;
        machineTypeChanged: SignalConnector<any>;
        mesh: MeshElement;
        rotor: RotorElement;
        stator: StatorElement;
        winding: WindingElement;
        changeProperty(propName: string, value: any): boolean;
        isMachineRSR(): boolean;
        isMachineRSRSR(): boolean;
        isMachineSR(): boolean;
        isMachineSRS(): boolean;
        isMachineSRSRS(): boolean;
        setConfigVariable(propName: string, value: any): void;
    }
    Index

    Methods

    • Changes a property value. The change can be undone with the Undo command in the GUI.

      Parameters

      • propName: string

        Property name.

      • value: any

        Property value.

      Returns boolean

      True on success.

    Properties

    Returns an object; its type is unspecified here.

    Read only

    debugMode: boolean

    Returns whether developer mode is enabled in DS.

    Read only

    Use developerMode.

    debugModeChanged: SignalConnector<boolean>

    Signal emitted when debug mode changes.

    Read

    developerMode: boolean

    Returns whether developer mode is enabled in DS.

    Read only

    developerModeChanged: SignalConnector<boolean>

    Signal emitted when developer mode changes.

    Read

    machineType: Motor

    The machineType property defines the configuration type of the motor.

    Read/Write

    machineTypeChanged: SignalConnector<any>

    Signal emitted when machineType changes. The argument is a MachineType object, not a number; read motor.machineType for comparisons.

    Read

    Returns a MeshElement object.

    Read only

    Returns a RotorElement object.

    Read only

    Returns a StatorElement object.

    Read only

    Returns a WindingElement object.

    Read only