Share

Netfabbtrayhandler

[Desktop Automation]

netfabbtrayhandler is a global variable which is only available in Desktop Automation. It enables access to the trays and to create a new tray in the application. It is not a Lua object that can be created and released.

Properties

Property Read/write Type Description
traycount Read Number Returns the current number of trays

Back to top

Methods

Name Syntax Description
addtray netfabbtrayhandler:addtray(name:String, machinesize_x:Number, machinesize_y:Number, machinesize_z:Number) Adds a new tray to Netfabb. It appears with name the tree, machinesize_x, machinesize_y, and machinesize_z determine the buildroom size.
gettray netfabbtrayhandler:gettray(index:Integer) Retrieve a tray from Netfabb
removetray Netfabbtrayhandler:removetray(index: Integer) Removes the tray of the corresponding index. Workspace trays, and the main tray cannot be removed. Also, the tray must be empty. Function returns 0 if the tray was successfully removed. Otherwise 1 (index not valid), 2 (tray is main tray), 3 (tray is workspace tray), 4 (tray not empty), 5 (internal error).

Back to top

Was this information helpful?