Units

The Length and Weight units for Maxsurf are identified through the DimensionUnits and WeightUnits objects respectively. These two objects represent the choices available in the Units Dialog Box (Data | Units) within Maxsurf. The objects use enumerated values to define the unit types. These values are shown on page 86 under Enumerated Types.

 

An example of setting the units within Maxsurf to millimeters and kilograms is;

    msApp.Preferences.DimensionUnits = msDUMillimeters

    msApp.Preferences.WeightUnits = msWUKilograms

 

The Units objects can also be used to get the dimension units from Maxsurf.