Syntax:
ugmerge.exe <file1> <file2> <destination> <delimiter>
UGMerge is a merging program used with Unigraphics CAD to merge two sets of files creating the single file <destination> derived from <file1> and <file2> where the values in <file2> take precedence over the values in <file1>.
<file1> is a full definition file (i.e. ug_english.def, as installed) made available globally via the LAN.
<file2>, which is optional, normally contains only the settings that are unique to a specific user. If this file is not used, or cannot be found, then <destination> file will be the same as <file1>. The settings in <file2> will always take precedence over the settings in <file1>.
There is no setup program, so the system will need to be configured manually. Here's what needs to be done:
Assume the following environment:
Drive Mappings:
c:\Local HDD where OS loads. d:\Local HDD where Unigraphics is installed. h:\Network "Home" drive (unique to each user) r:\Network share Folders:
c:\winntOS d:\ugs180UG v18 Installation h:\ugconfig\ugs180Folder in home drive for custom .dat and .def files. r:\ug_shared\ugs180Location for global .dat and .def files. The company Widgets Inc. uses a custom ug_english.dat file. After installing UG, they modify ug_english.dat to their liking and place it in r:\ug_shared\ugs180. Everyone in the company uses the same plot_queue HP650_WIDTH except Jan, who usually plots color and prefers the default queue HP650_COLOR. In this case, Administrator would place a text file named ug_english.dat in Jan's home drive and make the following entry in this file:
UG_defaultPlotQueueName: HP650_COLOR
When Jan starts UG via a custom batch file, UGMerge will be executed, merge the two .dat files creating a new .dat file and place that file in the local UGS folder, overwriting the existing ug_english.dat file. That new, local .dat file will now have the appropriate default plot_queue whilst all other users will be using the default plot_queue defined in the global definition file.
Following is a list of general troubleshooting items I've come across.
- The most common problem I have is forgetting to change the permissions on the local ugii_env.dat and ug_english.def files. See step 7 of the installation procedures above. Forgetting to do this will not produce an error, it simply won't change the files.
- I discovered that if you run the program and it cannot find <file1>, the program generates an error. If you are receiving errors, ensure <file1> is there and the path to it is correct. Also ensure all parameters are passed to ugmerge.exe. There are no command line switches.
- Other problems may arise if the specific user doesn't have permissions to <file1>. I haven't encountered this problem though. During troubleshooting, try logging on as Administrator and try the program again. If system works as advertised, then the problem is most likely a permissions problem. At the very least, users will need read permissions to \ug_shared & \ugconfig and read/write permission to \ugs180\ugii\ug_english.def & \ugs180\ugii\ugii_env.dat.
- Also ensure the correct delimiter is used for the specific file. The delimiter is the character that is used between the variable and the value. For instance, in the ug_english.dat file, the colon (:) is the delimiter
- Running ugparse.exe manually from command line may give some clues. When executed properly, the program will echo <file1>, <file2> and <destination>.
- As far as my testing showed, no DLL's are needed to run this program. However, it is a MSVC++ compiled application and might need something on some systems. If you encounter a required DLL to run the program, let me know and I will include it in the installation package.
- Any further issues, email me at shareware@GarysPhotography.com and I will try to help out, although I cannot guarantee anything ;-).