Macro Language Reference > Macros > System > saveunits
  
saveunits
Description
Saves all currently active unit definitions into a specified file.
Syntax
saveunits filename:s
filename
The full name of the file (including path or file area location) to which to save the definitions, or a tag name if the filename uses the special {0} area
Additional Information
The unit information is saved as valid unit macros, similar to those that appear in the ssys.3ad file. For example:
unit 1 ,"cc","cc","cicero",12,7,30,4.5134837925
unit 2 ,"mm","mm","mm",10,0,0 ,1.0
unit 3 ,"cm","cm","cm",10,0,30,10.0
unit 4 ,"in","in","inch" ,10,0,0 ,25.4
The saved information can be used to restore a set of units at some later time (using the run or trun macros). Before doing so, it may be useful to deactivate all current units; individual unit slots may be deactivated by using the unit macro with the relevant slot number, for example unit 4.
Related Links