Share

Netfabbtrayhandler

[Desktop Automation]

netfabbtrayhandler is a global variable which is only available in Desktop Automation. It enables access to the current trays and to creating new trays 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. Note: This is only a selector as far as the Lua API is concerned. It does not actually activate the tray as if its corresponding entry in the project tree was clicked.
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?