Category Creo Parametric fundamentals, Object ProConfigopt

Function ProConfigoptSet


Description
Sets the value of the specified configuration file option. If the option is a multi-string option (e.g. search_path) the function adds a new entry for this option without modifying existing entries.
Replacement in Object TOOLKIT: pfcBaseSession::SetConfigOption
Synopsis
#include <ProUtil.h>
ProErrorProConfigoptSet(
ProName option
/* (In)
The keyword string. This can include uppercase and lowercase letters.
*/
ProPath option_value
/* (In)
The value of the keyword string, as it must appear in the configuration file.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the value.
PRO_TK_E_NOT_FOUNDThe specified option was not found.
PRO_TK_BAD_INPUTSYou cannot set the specified option.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Utilities: Configuration Options
  3. Core: Utilities: Configuration Options

Sample Code References:

  1. pt_examples ( TestConfig.c )
  2. pt_examples ( TestConfig.c )