Class Job
Information about the current job
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public sealed class Job : ModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChanging
Properties
Build
Information about the current build or null if not available
Declaration
public Build? Build { get; set; }
Property Value
Type | Description |
---|---|
Build |
Duration
Total active duration of the current job file (in s or null)
Declaration
public int? Duration { get; set; }
Property Value
Type | Description |
---|---|
int? |
File
Information about the file being processed
Declaration
public GCodeFileInfo File { get; }
Property Value
Type | Description |
---|---|
GCodeFileInfo |
FilePosition
Current position in the file being processed (in bytes or null)
Declaration
public long? FilePosition { get; set; }
Property Value
Type | Description |
---|---|
long? |
LastDuration
Total duration of the last job (in s or null)
Declaration
public int? LastDuration { get; set; }
Property Value
Type | Description |
---|---|
int? |
LastFileAborted
Indicates if the last file was aborted (unexpected cancellation)
Declaration
[SbcProperty(false)]
public bool LastFileAborted { get; set; }
Property Value
Type | Description |
---|---|
bool |
LastFileCancelled
Indicates if the last file was cancelled (user cancelled)
Declaration
[SbcProperty(false)]
public bool LastFileCancelled { get; set; }
Property Value
Type | Description |
---|---|
bool |
LastFileName
Name of the last file processed or null if none
Declaration
public string? LastFileName { get; set; }
Property Value
Type | Description |
---|---|
string |
LastFileSimulated
Indicates if the last file processed was simulated
Declaration
[SbcProperty(false)]
public bool LastFileSimulated { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
This is not set if the file was aborted or cancelled
LastWarmUpDuration
Warm-up duration of the last print or null if not available (in s)
Declaration
public int? LastWarmUpDuration { get; set; }
Property Value
Type | Description |
---|---|
int? |
Layer
Number of the current layer or null not available
Declaration
public int? Layer { get; set; }
Property Value
Type | Description |
---|---|
int? |
LayerTime
Time elapsed since the last layer change (in s or null)
Declaration
public float? LayerTime { get; set; }
Property Value
Type | Description |
---|---|
float? |
Layers
Information about the past layers
Declaration
[SbcProperty(false)]
public ModelCollection<Layer> Layers { get; }
Property Value
Type | Description |
---|---|
ModelCollection<Layer> |
Remarks
In previous API versions this was a ModelGrowingCollection<T> but it has been changed to ModelCollection<T> to allow past layers to be modified again when needed. Note that previous plugins subscribing to this property will not receive any more updates about this property to avoid memory leaks
See Also
PauseDuration
Total pause time since the job started
Declaration
public int? PauseDuration { get; set; }
Property Value
Type | Description |
---|---|
int? |
RawExtrusion
Total extrusion amount without extrusion factors applied (in mm)
Declaration
public float? RawExtrusion { get; set; }
Property Value
Type | Description |
---|---|
float? |
TimesLeft
Estimated times left
Declaration
public TimesLeft TimesLeft { get; }
Property Value
Type | Description |
---|---|
TimesLeft |
WarmUpDuration
Time needed to heat up the heaters (in s or null)
Declaration
public int? WarmUpDuration { get; set; }
Property Value
Type | Description |
---|---|
int? |