Customizing the User Preferences

OnePart provides the CustomConfigs.xml configuration file to easily customize a number of features available in the user preferences.

This task shows you how to:

Configure the preferences

To configure the preferences, you must override the default key values in the xml configuration file and then manually apply the product configuration.

  1. Go to the ONEPART_INSTALLDIR.
  2. Open the datadir\config\CustomConfigs.xml
  3. Edit the values you require in the <CustomConfig name="userPreferences"> tag,

    For example, to change any of the parameter values in <ns2:KeyValue key="parameters">

    • for example, to change the defaults units system, edit the value in <ns2:KeyValue key="unitSystem" value="metric"/> to imperial
    • or the value in <ns2:KeyValue key="compareNumericalTolerance" value="5"/> to 10 to increase the default threshold to 10% for numerical values
  4. Save the file.
  5. Run datadir\bin\buildgct.exe to rebuild the product configuration.

    Note: For details on manually applying the configuration, see the Exalead CloudView Configuration Guide.

  6. In the Administration Console home page, click Restart host.

Example - CustomConfigs.xml

        <CustomConfig name="userPreferences">
            <ns2:KeyValue value="preferences" key="pageParamPrefix"/>
            <ns2:KeyValue key="parameters">
                <ns2:KeyValue value="auto" key="locale"/>
                <ns2:KeyValue value="metric" key="unitSystem"/>
                <ns2:KeyValue value="dd MMM yyyy, HH:mm" key="dateTimeFormat"/>
                <ns2:KeyValue value="dd/MM/yyyy" key="dateFormat"/>
                <ns2:KeyValue value="Europe/Paris" key="timeZone"/>
                <ns2:KeyValue value="1" key="collapsingStrategy"/>
                <ns2:KeyValue key="childrenResolveStrategy">
                    <ns2:KeyValue value="2" key="catia"/>
                    <ns2:KeyValue value="0" key="solidworks"/>
                    <ns2:KeyValue value="2" key="proengineer"/>
                    <ns2:KeyValue value="2" key="autocad"/>
                    <ns2:KeyValue value="1" key="nx"/>
                    <ns2:KeyValue value="2" key="solidedge"/>
                </ns2:KeyValue>
                <ns2:KeyValue key="profile">
                    <ns2:KeyValue value="" key="first_name"/>
                    <ns2:KeyValue value="" key="last_name"/>
                    <ns2:KeyValue value="" key="jobtitle"/>
                    <ns2:KeyValue value="" key="company"/>
                    <ns2:KeyValue value="" key="email"/>
                    <ns2:KeyValue value="false" key="acceptContactByEmail"/>
                    <ns2:KeyValue value="" key="phone"/>
                    <ns2:KeyValue key="address">
                        <ns2:KeyValue value="" key="street"/>
                        <ns2:KeyValue value="" key="city"/>
                        <ns2:KeyValue value="" key="state"/>
                        <ns2:KeyValue value="" key="zipcode"/>
                        <ns2:KeyValue value="" key="country"/>
                    </ns2:KeyValue>
                    <ns2:KeyValue value="false" key="accept_contact_by_supplier"/>
                </ns2:KeyValue>
                <ns2:KeyValue value="application" key="homePage"/>
                <ns2:KeyValue value="null" key="shapeSimilarityConfigId"/>
                <ns2:KeyValue value="null" key="specificationSimilarityConfigId"/>
                <ns2:KeyValue value="null" key="openInSourceConfigId"/>
            </ns2:KeyValue>
        </CustomConfig>

User preferences configuration

The User preferences configuration is detailed below.

userPreferences details

Key

Values

Purpose

childrenResolveStrategy

By format (catia, solidworks, etc..) you can set the values to:

0, 1, 2, 3, 4, 5

Set the default assembly mapping strategy for the family type that correspond to S0, S1, S2 etc..

For strategy details, see Assembly mapping strategy details in the OnePart Reference Guide.

collapsingStrategy

1 - used internally

Set the grouping strategy

compareNumericalTolerance

number between 0 and 50

Sets the default tolerance percentage used to compare the items’ numerical values. The default is 5%.

dateFormat

dd/MM/yyyy

MM/dd/yyyy

Set the default date format.

dateTimeFormat

*dd MMM yyyy, HH:mm

dd/MM/yyyy HH:mm

MMM dd yyyy HH:mmMM/dd/yyyy HH:mm

Set the default date and time format.

homePage

home

reduce

home - set default to OnePart home page

reduce - set default to Reduce home page

locale

*auto

en

fr

de

Set the language for the user interface. The default is "auto" that automatically detects the first language available in the application based on the browser’s settings.

See To change the default language

openInSourceConfigId

for internal use only

See Customizing Open in Source

shapeSimilarityConfigId

for internal use only

See Customizing Related Items

tagging

To create a new "tags" suggest from a custom XML dictionary. See Customize Tag suggest

timeZone

Canada/Central

*Europe/Paris

US/Pacific

US/Central

...

Set the default time zone.

unitSystem

*metric

imperial

Set the default unit system.

viewMode

a valid results view: list, compare, images, table, analytics

Sets the preferred view mode for the selected search results in Preferences > Views