Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tool Graphics

Status
Not open for further replies.

sasha1

Aerospace
Feb 5, 2008
54
0
0
GB


Within NX7.5 we build tool model assemblies downloaded from the suppliers. These models are then saved Native on each PC in
C:\Program Files\UGS\NX 7.5\MACH\resource\library\tool\graphics.
Tool data created in Manufacturing using same name as the model and exported to tool library. Then recalled from library and the tool model assembly graphics are shown.

We have 5 users on network and would like one location on the shared drive for all of the users to retrieve the tool model.prts from.

I believe that the procedure to overwrite variable is using the ugii_env.dat file.

Im obviously missing something, Ive added the test location of the model graphic library to ugii_env.dat (made safe copy first) but still cant see the model when I call the tool from Library in manufacturing.


#
# 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.
UGII_CAM_LIBRARY_TOOL_GRAPHICS_PATH=C:\CASING_TOOL_GRAPHICSUGII_CAM_LIBRARY_DEVICE_GRAPHICS_PATH=C:\CASING_TOOL_GRAPHICSUGII_CAM_LIBRARY_MACHINE_GRAPHICS_PATH=C:\CASING_TOOL_GRAPHICS
# 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



Iv tried with and without the # on If to endif line.
Without the # I get error message when opening NX!

Any advice would be much appreciated.




Currently using NX6
 
Replies continue below

Recommended for you

First, check your syslog to see if you are editing the right ugii_env.dat file.
Look for "Using ugii_env file" ...
The system searches several locations in a specific order.

Next, there are several variables that are used by the library system, and some are defined based on others, so you may not have everything.

The safest way to test this is to copy the entire resource folder (found under MACH) to your test location.
Then define only UGII_CAM_RESOURCE_DIR to point there.

Run NX and check the log file to see that all the CAM stuff is pointing to your test location.

If that works, and you still want to share less than the entire resource folder, I would share all the library files together, and not break out the graphics. If you try to keep the library files in separate locations, it can be very confusing. You can copy resource\library and define UGII_CAM_LIBRARY_DIR to point there.



Mark Rief
Product Manager
Siemens PLM
 
I looked at the CAM_RESOURCE_DIR variable that I have modified and the location that I defined is listed inside parentheses. UGII_CAM_RESOURCE_DIR="M:\CONFIGURATION_CONTROL\Unigraphics Converted Data\Programming UG Part Files\Updates & Information\NX 9.0\resource\"

Also, you did restart NX after changing the variable?
 
The variables establish the environment in which NX runs, so you have to restart NX after setting them.

Mark Rief
NX CAM Customer Success
Siemens PLM Software
 
Thanks all for the advice.

Mark
Followed your advice and the syslog points to the ugii_env.dat I've modified.

Using ugii_env.dat file from C:\Program Files\UGS\NX 7.5\UGII

Ive copied the Resource directory to to the shared drive, K:\casings\NX_SHARED_RESOURCE\resource, and changed the ugii.env.dat to the following

# Override any variables here.

UGII_CAM_RESOURCE_DIR="K:\casings\NX_SHARED_RESOURCE\"

# Do not define any variables after the #include below. They must be defined


Re-started NX and checked syslog again,its points to the new shared folder.
UGII_CAM_RESOURCE_DIR K:\casings\NX_SHARED_RESOURCE
However when I try to start manufacturing I get error message

Invalid Configuration file.




Currently using NX6
 
Check the file pointed to by UGII_CAM_CONFIG.
OOTB this should be resource\configuration\cam_general.dat.
I suspect either it is missing or it has a typo in it somewhere.

Mark Rief
NX CAM Customer Success
Siemens PLM Software
 
Checked the file and its pointing to correct as you indicated.

Added line to ugii_env.dat pointing back to the original installed location
and now get a C++ Runtime error

Program C:\Program Files\UGS\NX7.5\UGII\ugraf.exe






 
If you cannot diagnose this from the syslog, please contact GTAC so that they can see what is happening.

Mark Rief
NX CAM Customer Success
Siemens PLM Software
 
Status
Not open for further replies.
Back
Top