Syntax

MMpy.FileStruct()

Description

Creates a blank data file structure.

Returns

Type
Description

MMpy.FileStruct

A new file struct object instance.

See Also

MMpy.File()

MMpy.File.structure

Notes

If the user wishes to modify an existing structure, it can be accessed through MMpy.File.structure instead.

Examples

# Create a new structure and populate it with fields. structure = MMpy.FileStruct() structure.add_field(...) ... # Save the structure to a new file. file_path = MMpy.Project.path() + 'OutFile.DAT' file_title = 'OutFileTitle' MMpy.File.create_from_template(file_path, file_title, structure) # Open the new file for editing. file = MMpy.File() file.open(file_path) ... file.close()

Resource ID

IDPH_FILESTRUCT