MFORMAT: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffm (talk | contribs)
No edit summary
Jeffm (talk | contribs)
No edit summary
Line 1: Line 1:
==MFormat(NumberCommand#, 'InchName', 'MetricName')
==MFormat(NumberCommand#, 'InchName', 'MetricName')==


{{Description|description=This command can be used to define two formats for a number command, in the form of: `MFORMAT' (NumberCommand# 4, 3) The Post Processor will use the first format for inch output and the second for metric output. This command should  be called only  in posts that support inch/metric in the same post.
{{Description|description=This command can be used to define two formats for a number command, in the form of: `MFORMAT' (NumberCommand# 4, 3) The Post Processor will use the first format for inch output and the second for metric output. This command should  be called only  in posts that support inch/metric in the same post.

Revision as of 23:41, 1 April 2014

MFormat(NumberCommand#, 'InchName', 'MetricName')

Description

This command can be used to define two formats for a number command, in the form of: `MFORMAT' (NumberCommand# 4, 3) The Post Processor will use the first format for inch output and the second for metric output. This command should be called only in posts that support inch/metric in the same post.


The format names can be any format name that is located in the Formats list in Compost, an axis name, or a format definition.

Examples:

Format (EPX#, 4, 3)

Format (SPX#, '####.####', '#####.###')


Notes

Works with only Version 6.10.06 and later.


Stats

ID 722
Type Command
Class All Machines
Min Version N/A


Version 11 Notes

With the advent of named formats this command is not needed for newer post processors. A named format can contain both an inch and metric definition and be attached to a number command using the normal FORMAT command.