Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Startup site settings

Status
Not open for further replies.

Trietsch

Industrial
Aug 17, 2012
48
Hello,

Can someone help me figure out how to change from one version of startup site settings to another? I think I came across this in NX once and I can't find it currently.

I have a common PC that multiple folks want to use (via citrix) to run NX with different site settings. There are four options with startup files on the PC in the sites directory. Currently my NX batch file selects the site settings based upon the location code in the PC hostname:

set UGII_SITE_DIR=%ESS_TC_SITE_SERVER_UNC%\ESS_setups\Sites\%ESS_PC_SITE_CODE%
set UGII_ENV_FILE=%ESS_TC_SITE_SERVER_UNC%\ESS_setups\Sites\%ESS_PC_SITE_CODE%\startup\ugii_env.dat

I can modify the batch file, however I don't know of a varaible to use as it is only users connecting via citrix so what variable could i grab to change the startup ugii_env.dat file?

Running NX6.0.5.3 / TC8.3

Thanks,
Ryan
 
Replies continue below

Recommended for you

Are you talking about each user having their own unique site files?

If so, you could create multiple 'site' folders and then in each user's Windows profile add the environment variable pointing to their specific site folder. Then when they log-in, the system will already be pointing to that user's unique 'site' folder.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
John,

Thank you for the reply.

Let me try to clarify with an example.

Let’s say I have a server in Chicago and I need folks from around the US to log into their citrix account to connect to that server and start a TC and NX session there. Now folks that join from LA want their drafting settings to look one way... and folks from NYC want another way... While folks in Chicago have yet a third set of settings. Currently my batch file doesn't see them any differently and launches the settings that would be appropriate for a Chicago user as the server has a Chicago site code as its hostname.

I'm not exactly sure how Citrix works, if it starts a unique windows session i potentially could use their log in credentials based upon username to determine the site settings.

I was hoping that NX had a way to change the files that it looks toward manually. I think i saw this at one point, however I can't find it now so I may have been dreaming. When I go to File > Utilities > Customer Defaults > Drafting, I don't see the options that physically exist on the server.

I hope this helps explain what I am after...

Thanks,
Ryan
 
Since you are using a batch file, why call the env file at all?
I don't have an example, but you can use if then else statements in the batch file to test for a condition (location of the user or username for example).
Then you can set the drafting variables to explicitly tell NX where to dins the files it needs.

In your case I would create a user variable called ESS_LOCATION that each logon has set to be their location.
Then test for the value of the variable using if then else statements in the batch to then set the variables as below depending on the users location.

I would set the following variables for what you want to do.

UGII_LOCAL_USER_DEFAULTS - for a users customer defaults file (*.dpv)
UGII_USER_PROFILE_DIR - controls the location of MTX, history and roles for a user
UGII_LOCAL_USER_DRAFTING_STANDARD_DIR is for a users drafting standards
UGII_DRAFTING_STANDARD_DIR - is for the global drafting standards - currently in ...\ugii\drafting_standards

To debug, check the NX log files to see what the variables are being set to.


Anthony Galante
Senior Support Engineer

NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3.4
NX8.5.0.23 -> NX8.5.2.3 & NX9.0.0.19
 
PhoeNX.

Thank you for the information, I'll try that and see if I can get it to work.

Thanks again,
Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor