Table of Contents

Class Build

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Information about the current build

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

Constructors

Build()

public Build()

Properties

CurrentObject

Index of the current object being printed or -1 if unknown

public int CurrentObject { get; set; }

Property Value

int

Remarks

This value may now be greater than the length of the job.build.objects array. This is because the size of job.build.objects is limited to conserve memory (to 20 on Duet 2 or 40 on Duet 3), whereas when M486 labelling is used, many more objects can be numbered and the first 64 can be cancelled individually

M486Names

Whether M486 names are being used

public bool M486Names { get; set; }

Property Value

bool

M486Numbers

Whether M486 numbers are being used

public bool M486Numbers { get; set; }

Property Value

bool

Objects

List of detected build objects

public StaticModelCollection<BuildObject> Objects { get; }

Property Value

StaticModelCollection<BuildObject>

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