Preferences Object

The Preferences object provides access to settings within the Maxsurf application that control how data is presented inside of Maxsurf. The Preferences object contains objects to set the units of measurement for dimensions and weight inside of Maxsurf. It also provides method to set the precision of Maxsurf surfaces.

Note

All methods and properties in the Maxsurf Automation Interface use the SI-units of metres and kilograms. Changing the preference units only changes the units within the Maxsurf user interface.

Maintaining consistent units between the Maxsurf Automation and User interfaces can be useful to avoid any confusion when working with both environments.

Figure 8 Marker Object Hierarchy

The code to access these properties is:

    msApp.Preferences.DimensionUnits = msDUCentimeters

    msApp.Preferences.Precision = msSPLow

The Enumerated values for the types available in the preferences object are listed in Enumerated Types on page 84.

 

See Also:

Preferences and Units on page 47

Preferences on page 56