Table of Contents

Class MotionSystem

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Information about a motion system

public class MotionSystem : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
Inheritance
MotionSystem
Implements
Inherited Members

Constructors

MotionSystem()

public MotionSystem()

Properties

CurrentMove

Information about the current move

public CurrentMove CurrentMove { get; }

Property Value

CurrentMove

CurrentObject

Number of the current object being printed or null if not printing

public int? CurrentObject { get; set; }

Property Value

int?

CurrentTool

Number of the currently selected tool or -1 if none is selected

public int CurrentTool { get; set; }

Property Value

int

NextTool

Number of the next tool to be selected

public int NextTool { get; set; }

Property Value

int

PreviousTool

Number of the previous tool

public int PreviousTool { get; set; }

Property Value

int

PrintingAcceleration

Maximum acceleration allowed while printing (in mm/s^2)

public float PrintingAcceleration { get; set; }

Property Value

float

RestorePoints

List of restore points

public StaticModelCollection<RestorePoint> RestorePoints { get; }

Property Value

StaticModelCollection<RestorePoint>

Rotation

Parameters for centre rotation

public MoveRotation Rotation { get; }

Property Value

MoveRotation

SpeedFactor

Speed factor applied to every regular move (0.01..1 or greater)

public float SpeedFactor { get; set; }

Property Value

float

TravelAcceleration

Maximum acceleration allowed while travelling (in mm/s^2)

public float TravelAcceleration { get; set; }

Property Value

float

UserPosition

User coordinates of the motion system

public ObservableCollection<float> UserPosition { get; }

Property Value

ObservableCollection<float>

VirtualEPos

Virtual total extruder position

public float VirtualEPos { get; set; }

Property Value

float

WorkplaceNumber

Index of the currently selected workplace

public int WorkplaceNumber { get; set; }

Property Value

int

Methods

Assign(IStaticModelObject)

Assign the properties from another instance. This is required to update model properties which do not have a setter

public void Assign(IStaticModelObject from)

Parameters

from IStaticModelObject

Other instance

Clone()

Clone this instance

public object Clone()

Returns

object

Cloned instance

Remarks

This method is auto-generated

UpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

public void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader, bool)

Update this instance from a given JSON element

public void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)

Parameters

reader Utf8JsonReader

Reader to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data