MMpy.Font.serialise
Syntax
font.serialise()
Description
Serialises the font object to a string which can then be used in the MMpy.FormSet.set_field function.
Returns
Type |
Description |
---|---|
str | A string representation of the font object. |
Notes
This function is normally not used with newly recorded scripts in Micromine 2020+ as form sets are now able to accept objects directly.
Examples
font = MMpy.Font(...) formset = MMpy.FormSet(...) # Older recorded scripts formset.set_field('FONT', font.serialise()) # Newer recorded scripts (Micromine 2020+) formset.set_field(123, font)
Resource ID
IDPH_FONT_SERIALISE