|Spreadsheet -> Create|
This tool adds a new spreadsheet object to the active document. The spreadsheet can then be edited with standard FreeCAD editing methods (right-clicking it in the tree view or using the Std Edit command.
Spreadsheets can be created from python scripts and macros using the makeSpreadsheet() function:
import Spreadsheet mySpreadsheet = Spreadsheet.makeSpreadsheet()
The contents of the spreadsheet can then be manipulated like this:
mySpreadsheet.Proxy.A1 = "my text" print mySpreadsheet.Proxy.A1
Spreadsheet objects can also be created purely in the python space, with no existence in the FreeCAD document. These won't be saved when you close the FreeCAD file, so it is only meant for temporary purposes:
import Spreadsheet myPySpreadsheet = Spreadsheet.Spreadsheet() myPySpreadsheet.A1 = "my other text" print myPySpreadsheet.A1