MMpy.FileStruct.fields

Syntax

structure.fields

Description

Property to return the mappings of fields names to field IDs.

Returns

Type
Description
dict[str, int] Dictionary with field name as the key and field ID as the value.

Examples

file = MMpy.File()
file.open(...)

fields = file.structure.fields
field_name = 'EXAMPLE_FIELD'
field_id = field[field_name]

Resource ID

IDPH_FILESTRUCT_FLDS