Function that saves the layup data to a .csv file.
Parameters
path: The path to the file.
format: Format can be csv and excel (on windows only).
objects: An optional parameter, if enabled, then the entire layup is written to the file. If disabled, only the layup defined within modeling_groups is written to the file.