Sie sind auf Seite 1von 7

Successful practice:

Custom NX CAM setup guide

This document will explain how you can


create a custom CAM setup, which
allows you to add customization to your
CAM environment without modifying in
the OOTB NX installation. Version: v3.0
Successful Practice: Custom NX CAM setup
This document will explain how you can create a custom CAM setup, which allows you
to add customization to your CAM environment without modifying in the OOTB NX
installation.

Benefits of a Custom setup:

Keeps your OOTB NX installation intact


Allows for multiple users to use the same custom setup at the same time.
A CAM manager can easily manage a single setup.

Contents
Successful Practice: Custom NX CAM setup.....................................................................2
1 How to set it up:........................................................................................................ 3
1.1 Create Custom folder and copy resource............................................................3
1.2 Creating Network Drive from folder in Windows 7...............................................3
1.3 Copy ugii_env.dat file.......................................................................................... 3
1.4 Set system variable............................................................................................. 4
1.4.1 1. Computer properties................................................................................. 4
1.4.2 2. Bat file....................................................................................................... 5
1.5 Set Load Options................................................................................................. 5
Contacts:.......................................................................................................................... 7
Version details.................................................................................................................. 7

Siemens Industry Software | Successful Practice: Custom NX CAM setup 2


1 How to set it up:
1.1 Create Custom folder and copy resource
Create a CAM_Custom folder at a destination accessible for all CAM users. (see
chapter 1.2)
o The name of the folder is not important, in this case we use CAM_Custom
Locate your OOTB NX installation
Open the OOTB NX installation folder and browse to the folder MACH
o i.e. D:\UGS\NX 10.0\MACH
Copy the resource folder and paste it in the CAM_Custom folder
o i.e. S:\CAM_Custom\resource\
o In these 3 documentations we are using S: as our folder location.

1.2 Creating Network Drive from folder in Windows 7


I am using a Network Drive created from a folder in the result of these
documents. It may be useful for you to create it similarly.
o Open Computer by clicking the Start button, and then clicking Computer
o Click the Tools menu, and then click Map Network Drive
o In the Drive list click a drive letter. (S)
o In the Folder box, type the path of the CAM_Custom folder
o Click Finish

1.3 Copy ugii_env.dat file


Open the OOTB NX installation folder and browse to the folder UGII and copy the
file ugii_env.dat and paste it in the CAM_Custom folder

Edit the ugii_env.dat file with a text editor and add the following entry:
UGII_CAM_RESOURCE_DIR=S:\CAM_Custom\resource\

Siemens Industry Software | Successful Practice: Custom NX CAM setup 3


Save and close the file.

1.4 Set system variable


You can either set the system variable directly in your computer properties, or
you can set it using a bat file.
Computer properties approach:
The benefit of setting it directly in your computer properties is you
can start NX with the custom setup using the default NX short-cut.
The downside is you have to manually out-comment the variable in
case you want to run NX OOTB.
Bat file approach:
The benefit of setting it thru a bat file is you start NX with the
custom setup by using the bat file, and you can start NX OOTB by
using the default NX short-cut.
The downside is you need to use the bat file to launch NX and not
the default NX short-cut.

1.4.1 1. Computer properties


Open My computer Properties Advanced system settings

In the Advanced tab open Environment Variables


Under System variables click New
Add the following Variable name and value:
Variable name: UGII_ENV_FILE
Variable value: S:\CAM_Custom\ugii_env.dat

Siemens Industry Software | Successful Practice: Custom NX CAM setup 4


You are now ready to run NX with the custom CAM setup.
Starting NX with the OOTB launch icon will now use the Custom resource
location, while the remaining files will be run from the OOTB NX installation
location.

1.4.2 2. Bat file


Anywhere on your computer create a new notepad file.
Name it NX_Custom_launch.bat
You will have to rename the file extension.
Edit the file in a text editor
Add the following lines:
@echo of
set UGII_ENV_FILE=S:\CAM_Custom\ugii_env.dat
START "" "%UGII_ROOT_DIR%\ugraf.exe" -nx
EXIT
Save and close file

1.5 Set Load Options


Start NX
Open Assembly Load Options

Siemens Industry Software | Successful Practice: Custom NX CAM setup 5


Change Load to From Search Folders
Add the shown two folders to the Session Folder list

Click Save to File


Save it in the CAM_Custom folder

Edit ugii_env.dat
Add the entry: UGII_LOAD_OPTIONS=S:\CAM_Custom\load_options.def

Siemens Industry Software | Successful Practice: Custom NX CAM setup 6


Contacts:

Contact: Lars Okkels, MBG.


Email: lars.okkels@siemens.com
Phone: +45 3038 6619

Version details

Version Date By Info


1.0 Feb 4 2015 Lars Document created
2.0 May 5 2015 Lars Typo corrected in chapter 1.3.1
3.0 Jun 2 2015 Lars Chapter 1.2 added

Siemens Industry Software | Successful Practice: Custom NX CAM setup 7

Das könnte Ihnen auch gefallen