Cancel
Showing results for 
Search instead for 
Did you mean: 

Folders being created in NXcustom directory

Phenom
Phenom

NX9 Tc 10

 

We use the NXcustom setup, started by Rob Cohon, and I have noticed folders being created in the NX9custom directory (on level below the NX90library folder).  Is there a way to stop this, and have them be created in some other temp folder?  It really makes things messy, when trying to maintain the setup.  1 or 2 wouldn't be bad, but things exploded today with CAM stuff.

 

ExtraFolders.jpg

 

-Dave
NX 11 | Teamcenter 11 | Windows 8.1
10 REPLIES

Re: Folders being created in NXcustom directory

Esteemed Contributor
Esteemed Contributor

Those look like tools.

When NX displays a parametric (CAM) tool, it creates a (supposedly) temporary part to do it.

In teamcenter, it creates a folder for the part in the TMP folder.

I.e. someone has a CAM tool named "CNMG432MN_KC9110_STEEL-1"

 

Guessing...Someone has their (Windows) TMP variable pointing to this folder.

Finding who will be "interesting"

- you could remove write access & see if 1 person screams they can't work (if everyone does, its harder to figure out ;-)

- otherwise go thru the CAM users and look in their syslogs, and see who is pointing UGII_TMP_DIR at this folder (instead of C:\Temp or C:\Users\(username)\Appdata\Local\Temp, or whatever)

 

Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Folders being created in NXcustom directory

Valued Contributor
Valued Contributor

I would definitely remove write access to this folder as I wouldn't want users being able to modify or delete any of the NX Custom files.

Mike

NX 10 TC11.2
www.astonmartin.com

Re: Folders being created in NXcustom directory

Phenom
Phenom

I know who it is...but I doubt it is intentional. CAM guys at the Indy shop are doing some training with Siemens, and I suspect they are doing something different, that is putting the stuff here.

 

Since we use Teamcenter, the start_nxmanager.bat file is used, and I found this in there regarding temp folders, BUT they may be bypassing this, by starting NX in a managed mode, without rich client Teamcenter.  Maybe the lack of this is what is causing this?:

rem Figure out the startup directory
rem The order of precedence is: API_DEFAULT_DIR, HOME, TC_TMP_DIR, UGII_TMP_DIR, TEMP
rem Otherwise we might end up in trouble if the current working
rem directory we were started up from is not writable.
rem
set START_DIR=%API_DEFAULT_DIR%
if "%START_DIR%"=="" set START_DIR=%HOME%
if "%START_DIR%"=="" set START_DIR=%TC_TMP_DIR%
if "%START_DIR%"=="" set START_DIR=%UGII_TMP_DIR%
if "%START_DIR%"=="" set START_DIR=%TEMP%
rem
cd /d %START_DIR%
:: Start NX through the launcher program
:: %UGII_ROOT_DIR%\ugs_router -ugm -enable_cancel -version=V26.5 %*
:: Last Modified: 29May2013
:: *** Edit this line to point to where the NX90custom directory is located

 

-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Folders being created in NXcustom directory

Esteemed Contributor
Esteemed Contributor

You could have them send you a syslog, to confirm where UGII_TMP_DIR is pointing.

Then you have to figure out how to fix it so it isn't pointing there ;-)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Folders being created in NXcustom directory

Phenom
Phenom

when I start NX the same way they are, UGII_TMP_DIR points to C:\Users\dkieffer\AppData\Local\Temp, same as when I launch NX thru Teamcenter.  I had them check the log, and same thing, but to another username, obviouisly.

-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Folders being created in NXcustom directory

Phenom
Phenom
Already working on that!! Smiley Happy
-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Folders being created in NXcustom directory

Siemens Legend Siemens Legend
Siemens Legend

Hello Dave,

 

Please have a look at where the enviroment variable HOME is pointing too.

This sometimes also causes this behavior.

In the ugii_env_ug.dat file home is set to:

 

HOME=${TMP}

 

But when this is already set on the system to antother location, it will not be changed anymore.

 

Regards,

Gerrit Koelewijn

Re: Folders being created in NXcustom directory

Phenom
Phenom

I will give that a try Gerrit.

 

One thing I have noticed with this behavior.  Since we use Teamcenter, if you start NX from the TC rich client, you do not create the folders.  If you start managed NX by bypassing the rich client, you get the folders.

 

I'm not sure what the difference is, I have things set to use the same NXcustom folders for both methods.  I guess I need to look closer at the start_nxmanager.bat to see what might be set differently in there.  I do see HOME mentioned here, maybe settingit will solve this.

 

rem Figure out the startup directory
rem The order of precedence is: API_DEFAULT_DIR, HOME, TC_TMP_DIR, UGII_TMP_DIR, TEMP
rem Otherwise we might end up in trouble if the current working
rem directory we were started up from is not writable.
rem
set START_DIR=%API_DEFAULT_DIR%
if "%START_DIR%"=="" set START_DIR=%HOME%
if "%START_DIR%"=="" set START_DIR=%TC_TMP_DIR%
if "%START_DIR%"=="" set START_DIR=%UGII_TMP_DIR%
if "%START_DIR%"=="" set START_DIR=%TEMP%
-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Folders being created in NXcustom directory

Siemens Legend Siemens Legend
Siemens Legend

Hello Dave,

 

You might also look at your "Start in Folder".

When you edit the script that Start NX in Managed mode

and add the following line before you kickof NX:

 

cd /d %TMP%

 

or any other folder were you want the stuff to go, might solve your issue.

 

Maybe that helps.

 

Regards,

Gerrit Koelewijn