RulePreferences Class — NXOpen Python API Reference 12.0.0 documentation

# RulePreferences Class

class `NXOpen.Preferences.``RulePreferences`

  Bases: `object`

  Provides methods for manipulating the Knowledge Fusion preferences in a session.

  To obtain an instance of this class, refer to `NXOpen.Preferences.SessionPreferences`

  New in version NX4.0.0.

# Methods

Method | Description
--- | ---
GetSearchLibraries | Get the search libraries for user classes.
SetSearchLibraries | Set the search libraries for user classes.

# Method Detail

## GetSearchLibraries

`RulePreferences.``GetSearchLibraries`

  Get the search libraries for user classes.

  Signature `GetSearchLibraries()`

  Returns: | search libraries
  Return type: | list of str

  New in version NX4.0.0.

  License requirements: ug_kf_author (“UG/Knowledge Fusion - Author”) OR pts_author (“Product Template Studio (Author)”)

## SetSearchLibraries

`RulePreferences.``SetSearchLibraries`

  Set the search libraries for user classes.

  Signature `SetSearchLibraries(userLibraries)`

  Parameters: | userLibraries (list of str) – search libraries

  New in version NX4.0.0.

  License requirements: ug_kf_author (“UG/Knowledge Fusion - Author”) OR pts_author (“Product Template Studio (Author)”)