Table of Contents

Class Duet3DFilamentMonitor

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Base class for Duet3D filament monitors

public class Duet3DFilamentMonitor : FilamentMonitor, INotifyPropertyChanging, IDynamicModelObject, IModelObject, ICloneable, INotifyPropertyChanged
Inheritance
Duet3DFilamentMonitor
Implements
Derived
Inherited Members

Constructors

Duet3DFilamentMonitor()

public Duet3DFilamentMonitor()

Properties

AvgPercentage

Average ratio of measured vs. commanded movement

public int? AvgPercentage { get; set; }

Property Value

int?

LastPercentage

Last ratio of measured vs. commanded movement

public int? LastPercentage { get; set; }

Property Value

int?

MaxPercentage

Maximum ratio of measured vs. commanded movement

public int? MaxPercentage { get; set; }

Property Value

int?

MinPercentage

Minimum ratio of measured vs. commanded movement

public int? MinPercentage { get; set; }

Property Value

int?

Position

Reported sensor position of this filament monitor. The maximum value depends on the type of the sensor, e.g. 0..1023 for a Duet3D MFM.

public int Position { get; set; }

Property Value

int

TotalExtrusion

Total extrusion commanded (in mm)

public float TotalExtrusion { get; set; }

Property Value

float

Methods

Assign(IDynamicModelObject)

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

public override IDynamicModelObject? Assign(IDynamicModelObject from)

Parameters

from IDynamicModelObject

Other instance

Returns

IDynamicModelObject

Updated instance

Clone()

Clone this instance

public override object Clone()

Returns

object

Cloned instance

Remarks

This method is auto-generated

GeneratedUpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

public override IDynamicModelObject? GeneratedUpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

GeneratedUpdateFromJsonReader(ref Utf8JsonReader, bool)

Update this instance from a given JSON element

public override IDynamicModelObject? GeneratedUpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)

Parameters

reader Utf8JsonReader

Reader to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data