MMpy.Hatch.serialise
Syntax
hatch.serialise()
Description
Serialises the hatch object to a string which can then be used in the MMpy.FormSet.set_field function.
Returns
Type |
Description |
---|---|
string | A string representation of the hatch object. |
Notes
This function is normally not used with newly recorded scripts in v2020+ as form sets are now able to accept objects directly.
Examples
hatch = MMpy.Hatch(MMpy.Colour(0, 0, 0), MMpy.Colour(255, 255, 255), MMpy.Colour(0, 0, 100), False, MMpy.LineType.solid, 13, 52, 'MM Hatch Patterns 1') formset = MMpy.FormSet(...) # Older recorded scripts formset.set_field('HATCH', hatch.serialise()) # Newer recorded scripts (v2020+) formset.set_field(123, hatch)
Resource ID
IDPH_HATCH_SERIALISE