Fabbproject
[Desktop Automation]
This is the central class. It holds references to the trays within the project and enables saving. The methods system:loadfabbproject and system:newfabbproject create instances of the class.
Properties
| Property | Read/write | Type | Description |
|---|---|---|---|
| filename | Read/write | String | Name of the fabbproject's filename. Is empty when a new fabbproject is created and filled in load/save operations. |
| root | read | String | Options that were not saved. Is updated during saving the file. |
| traycount | read | number | Number of trays within the fabbproject |
Methods
| Name | Syntax | Description |
|---|---|---|
| addtray | fabbproject:addtray(trayname:String, traysize_x:Number, traysize_y:Number, traysize_z:Number) | Adds a new tray to the fabbproject |
| gettray | fabbproject:gettray(index:Integer) | Retrieve a tray from the fabbproject |
| savetofile | fabbproject:savetofile(filename:String) | Saves the fabbproject to a file |
| totalheight | fabbproject:totalheight() | The sum of z heights occupied across all trays present in the fabbproject |
