User Exit Names

The environment variables and user exits are listed in the table below.
 
Table 1-1 User Exit Names
 
User Exit  Environment Variable Name 
 
¡@
Entry Point Subroutine 
 
¡@
Open Part  USER_RETRIEVE  ufget 
New Part  USER_CREATE  ufcre 
Save Part  USER_FILE  ufput 
Save Part As  USER_SAVEAS  ufsvas 
Import Part  USER_MERGE  ufmrg 
Execute GRIP Program  USER_GRIP  ufgrp 
Add Existing Part  USER_RCOMP  ufrcp 
Export Part  USER_FCOMP  uffcp 
Component Where-used  USER_WHERE_USED  ufusd 
Plot File  USER_PLOT  ufplt 
2D Analysis Using Curves  USER_AREAPROPCRV  uf2da 
User Defined Symbols  USER_UDSYMBOL  ufuds 
Open CLSF  USER_CLS_OPEN  ufclso 
Save CLSF  USER_CLS_SAVE  ufclss 
Rename CLSF  USER_CLS_RENAME  ufclsr 
Generate CLF  USER_CL_GEN  ufclg 
Postprocess CLSF  USER_POST  ufpost 
Create Component  USER_CCOMP  ufccp 
Change Displayed Part  USER_CDISP  ufcdp 
Change Work Part  USER_CWORK  ufcwp 
Remove Component  USER_DCOMP  ufdcp 
Reposition Component  USER_MCOMP  ufmcp 
Substitute Component Out  USER_SCOMP1  ufscpo 
Substitute Component In  USER_SCOMP2  ufscpi 
Replace Reference Set  USER_RRSET  ufrrs 
Rename Component  USER_NCOMP  ufncp 
NX Startup  USER_STARTUP  ufsta 
Access Genius Library Management System  USER_GENIUS  ufgen 
Execute Debug GRIP  USER_GRIPDEBUG  ufgrpd 
Execute Open C API  USER_UFUN  ufufun 
Open Spreadsheet  USER_SPRD_OPN  ufspop 
Close Spreadsheet  USER_SPRD_CLO  ufspcl 
Update Spreadsheet  USER_SPRD_UPD  ufspup 
Finish Updating Spreadsheet  USER_SPRD_UPF  ufspuf 
CAM User Defined Operation  <user assigns variable name>  udop 
CAM User Defined Drive Path  <user assigns variable name>  dpud 
CAM New Operation  USER_CREATE_OPER  ufnopr 
CAM Startup  USER_CAM_STARTUP  ufcams 
 
LINUX environment variable:
 
For each User Exit you want to implement, set the environment variable to specify the pathname of the Open C API program you want to execute. The format of the Linux command for setting these variables is:
 
setenv USER_FILE "/root1/test"
 
 NOTE: In the above example, NX executes the Open C API program called "test" whenever it encounters a User Exit at the File-->Save menu option.
 
 
Windows  environment variable:
 
For each User Exit you want to implement, set the environment variable to specify the pathname of the Open C API program you want to execute. The format of the Windows command for setting these variables is:
 
From the NX Command Prompt:
 
set USER_FILE=Z:\exits\test
 
After you set your variable, you can invoke NX from the NX Command Prompt by entering: "ugii".
 
NOTE: In the above example, NX executes the Open C API program called "test" whenever it encounters a User Exit at the File-->Save menu option.
 
USER_DEFAULT:
 
You can use a default variable named USER_DEFAULT. This variable is then used for all exits. Each entry in the shared library executable image that this variable points to is run when the exit occurs. If you have a specific variable defined, it takes precedence over the USER_DEFAULT variable.
 
For each user exit you want to implement, set the environment variable to specify the pathname of the program you want to execute. GRIP programs must be preceded by an asterisk (*) in the file specification that the environment variable points to. You omit the asterisk for Open C API programs.
 
.ugii_env:
 
You can define the environment variable in the .ugii_env file by including a line like the following for Open C API:
 
USER_CREATE = /users/userfcn/<image name>
 
or use the following for GRIP:
 
USER_CREATE = */users/userfcn/<image name>