Units Attribute
Jump to navigation
Jump to search
Many commands in XML input files allow an optional units attribute to specify the units of a numeric value. If no units attribute is used, the value will have default units depending on physical quantity associated with the command. The possible units settings and their default values are:
- Time
- The possible options are 'sec', 'ms', 'msec', or 'microsec'. The default units are seconds.
- Length
- The possible options are 'mm', 'm', 'cm', 'microns', 'in', or 'ft'. The default units are millimeters.
- Velocity
- The possible options are 'mm/sec', 'mm/msec', 'm/sec', 'cm/sec', 'in/sec', or 'ft/sec'. The default units are millimeters per second.
- Mass
- The possible options are 'g', 'kg', 'mg', 'lbs', or 'oz'. The default units are grams.
The units attribute is only allowed in XMLcommands the specify it is allowed.
No units option is available for scripted input files. Instead, each command assumes specific input units. Refer to each command for those specifications. The required units in scripted input files are not the same as the default units for XML input files.