Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

can I have two load options

Status
Not open for further replies.

nikoladm

Military
Jul 24, 2008
12
we have a standard setup for UG and the load_options.def file is on the network drive so it cannot be changed. I want to add an additional load_options.def file because of the projets that I work on. If I create and 2nd load_options.def file and save to my work/startup directory and start UG from there it doesn't load automatically. I see there is a set option in the Unigraphics startup batch on my desktop for SET UGII_LOAD_OPTIONS and points to the network drive where we get the standard load_options.def file. So why doesn't it load the 2nd load_options.def file when I start unigraphics ?
I thought if it was in the startup dir it would load automatically. I can open and load it manually. just trying to save a step....
 
Replies continue below

Recommended for you

Can you create your own copy of the BAT file, changing the value of UGII_LOAD_OPTION ?

Specialty Engineered Automation (SEA)
a UGS Foundation Partner
 
no, the IT geeks have the bat file copied every time we run the Ug bat file to start UG. So it over writes the bat file everytime. it is a good idea unless you need to change something.
 
I am working on NX5

Under load options there is an icon (towards the bottom) that says "save file" and another that says "open from file". I didn't try it but this may help you.
 
yes that is correct jerry1423, I can load them manually, but i thought that if the load_options.def was in the startup dir it would load it automatically. One from the network drive and mine that is local.
 
So what you can do in one of two things.

First jerry1423 has it correct about saving a file for your personal use and I would add that putting it in an specific location will help. You're likely to find however that while you can name several files fit for different options settings and place them in locations of your choice that you will have to manually go into File>Load Options, tick from file and then pick the one to restore from at least once per session. The system will default to one file in the default directory and named "load_options.def".

Two basic reasons to customise come to mind. The first is that different users may be working with their own personal user directories and drive mappings on a network. The second is that you could be working with different projects or subsets thereof where you tend to store groups of files in different places but it is inefficient to always search all of the storage volumes.

For the first you can create a simple solution that allows the system administrator a possibility of better control over how users operate. That is done by editing the ugii_env.dat file in the <install>/UGII directory. You'll be looking for the varaible "UGII_LOAD_OPTIONS=" and in NX-5 the section reads as follows below, noting that it contains a handy tip about directory naming which applies to all versions.

# This variable defines the ascii file that contains the load options settings.
# If it is not set, a file called load_options.def in the current directory
# is searched for instead. NOTE: If you set this to a file specification
# that contains spaces, you must enclose the file in quotes, e.g
# UGII_LOAD_OPTIONS="c:\my Data Files\load_options.def"
#
UGII_LOAD_OPTIONS=

In combination with the above try having each user map their local directory as the same drive path and then use equivalent drive mappings for network based project areas.

The other way to go is again you can set the default directory above to the user's home directory. Then save a bunch of load options files under several different names using either a different directory location or any name except "load_options.def". Then you can have a series of batch files that either copy and paste to overwrite the default filename "load_options.def" in its default location or vary the environmental variable setting by including a string per the example below. You would have the same batch file also launch NX to start a session with your desired load options for the project.

UGII_LOAD_OPTIONS="c:\my Data Files\my_load_options.def"

See how it goes for you

Cheers

Hudson
 
You can set

UGII_LOAD_OPTIONS="c:\my Data Files\load_options.def"

locally in
My Computer->MB3->Properties->Advanced->Environment Variables->User Variables

so that you don't have to have Administrative rights.
 
nikoladm

I think that "Bookmarks" can solve your problem. You can open faster your project/s than use saved load options.
Forgot about UGII_load_options if IT team set this in batch file or UGII_env.dat on shared folder.
Regards
Siwy
 
I have suggestion that may help you get your job done faster with your load option concern.

Prior to opening your file set the load option to "structure only" - there was a time (a version or two ago) when this was stated as "no components". The components will not get loaded and the file will open immediately:

File > assembly load options > (under scope) set to "structure only"

After your file is open set your Load Options to what you want.

Open up assembly all the way by going in your ANT and rmc the top level.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor