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
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
NextTool
Number of the next tool to be selected
public int NextTool { get; set; }
Property Value
PreviousTool
Number of the previous tool
public int PreviousTool { get; set; }
Property Value
PrintingAcceleration
Maximum acceleration allowed while printing (in mm/s^2)
public float PrintingAcceleration { get; set; }
Property Value
RestorePoints
List of restore points
public StaticModelCollection<RestorePoint> RestorePoints { get; }
Property Value
Rotation
Parameters for centre rotation
public MoveRotation Rotation { get; }
Property Value
SpeedFactor
Speed factor applied to every regular move (0.01..1 or greater)
public float SpeedFactor { get; set; }
Property Value
TravelAcceleration
Maximum acceleration allowed while travelling (in mm/s^2)
public float TravelAcceleration { get; set; }
Property Value
UserPosition
User coordinates of the motion system
public ObservableCollection<float> UserPosition { get; }
Property Value
VirtualEPos
Virtual total extruder position
public float VirtualEPos { get; set; }
Property Value
WorkplaceNumber
Index of the currently selected workplace
public int WorkplaceNumber { get; set; }
Property Value
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
fromIStaticModelObjectOther 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
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether 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
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data