Cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find this parameter to change "UGII_UPDATE_FAIL_OPTION"

Creator
Creator

 

Hello,

I should modify one of the parameter but I do not know where it is.

 

I am going to set UGII_UPDATE_FAIL_OPTION with a value “ACCEPT” or “ACCEPT_ALL”

Thanks

4 REPLIES

Re: Where can I find this parameter to change "UGII_UPDATE_FAIL_OPTION"

Siemens Phenom Siemens Phenom
Siemens Phenom

If you are in Windows, you can set at Start -> Control Panel -> System -> Advanced System Settings -> Environment Variables.

 

If you are using an environment file, such as ugii_env.dat or ugii_env_ug.dat, you can set it in there.

 

If you are using a .bat file to launch NX, you can also set it there.

 

 

Re: Where can I find this parameter to change "UGII_UPDATE_FAIL_OPTION"

Creator
Creator

It is under this directory: C:\Program Files\Siemens\NX 8.0\UGII

The file includes those lines below,

 

 

#
# Copyright 1991 - 2009 Siemens Product Lifecycle Management Software Inc.
# All Rights Reserved.
#
###############################################################################
#
#
# This file should be used to override any standard NX environment variables.
# The values defined here will take precedence over the NX values, as long as
# they are defined before the #include of ugii_env_ug.dat. This file will not
# be overwritten by an MR installation.
#
# Override any variables here.

#
# Do not define any variables after the #include below. They must be defined
# before the #include in order to override the NX defaults.
#
#if FILE ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#include ${UGII_BASE_DIR}\ugii\ugii_env_ug.dat
#endif

 

After last line, simply appending this line, UGII_UPDATE_FAIL_OPTION=“ACCEPT”

does it work like this?

Thanks

Re: Where can I find this parameter to change "UGII_UPDATE_FAIL_OPTION"

Siemens Phenom Siemens Phenom
Siemens Phenom

Not quite.  the docs say:

 


"The user can also set a variable of UGII_UPDATE_FAIL_OPTION before running
an NX Open API and set it to any of the values defined in UF_MODL_update_option_e. "

 

Here are the values shown for that update enum:

UF_MODL_update_option_e (view source)
 

Defined in: uf_modl_types.h
 
Also known as:
  • UF_MODL_update_option_t

 
Overview
The following are valid parameters to UF_MODL_set_update_fail_option ().


Data Members

UF_MODL_UPDATE_NO_OPTION = 0
No option defined yet

UF_MODL_UPDATE_UNDO
Undo entire Update operation.

UF_MODL_UPDATE_SUPPRESS
Suppress previous failed object

UF_MODL_UPDATE_SUPPRESS_ALL
Suppress previous failed object and rest of list

UF_MODL_UPDATE_ACCEPT
Accept warning of previous object

UF_MODL_UPDATE_ACCEPT_ALL
Accept previous warning and future of same type

UF_MODL_UPDATE_INTERRUPT
Interrupt update

 

So ACCEPT would be a value of 4, and ACCEPT_ALL would be a value of 5.

 

Do not use any quotation marks.

Re: Where can I find this parameter to change "UGII_UPDATE_FAIL_OPTION"

Siemens Phenom Siemens Phenom
Siemens Phenom

One more thing:  In that file, you cannot do it "after the last line" - see the note:

 

# Override any variables here.

#
# Do not define any variables after the #include below. They must be defined
# before the #include in order to override the NX defaults.
#