Hi Doug,

If you are regularly translating lots of files, you might want to look at running UT in a non-interactive mode using a Windows script or batch file - you could write a script that when double clicked, automatically translates all the TAB files in a directory to SHP format and places them in another directory - I have pasted a simple batch script that I have written below as an example. MI have published a paper about this which should be available from their website.

Batch file - paste the text below into a text file and give it a .bat extension. I have put a blank line between each line and the next to show where new lines should start as email often chops long lines up - they may need rebuilding. Copy the file into a directory with TAB files and double click in it in Explorer (or even create a shortcut to it elsewhere). All the TAB files should be translated into SHP files, placed in a subdirectory called SHP.

Hope this is useful,

Andrew



rem Batch TAB 2 SHP conversion. Copy this file into a directory and run

rem Shape files will be created in a subdirectory called SHP

rem AH 26/11/04

if not exist .\shp mkdir .\shp

for %%i in (*.tab) do (

"C:\Program Files\MapInfo\Professional\UT\IMUT.EXE" CFGenerate MAPINFO SHAPE "./" "UT_trans.fme" LOG_STANDARDOUT YES +ID "%%~ni"

"C:\Program Files\MapInfo\Professional\UT\IMUT.EXE" "UT_trans.fme" --DestDataset ..\shp\

  )

del /q UT_trans.fme

pause





Doug Wassmer wrote:
List:

I copied the entire UT subfolder which is located in C->Program Files-> MapInfo->Professional by default and placed a copy of it in the target subfolder in “My Documents”. I didn’t know which files necessary and which were not needed, so I copied everything. I then created a desktop shortcut to the IMUTGUI.EXE in this subfolder. The universal translator appears to function normally if MapInfo is also open, but will not function properly if it is not. This was done to reduce the number of file navigation keystrokes in lieu of setting UT to always go to a default subfolder in “My Documents”.

Doug Wassmer

-----Original Message-----
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug Wassmer
*Sent:* Monday, July 03, 2006 11:16 AM
*To:* [email protected]
*Subject:* [MI-L] Setting Universal Translator Input and Output Directoris

Dear List:

I want to set up default values so that both the Universal Translator (UT) input file folder and the output file folder are a “My Documents” subfolder on a workstation. My network is set up so that all “My Documents” directories actually reside on a server instead of the workstations so they may be automatically backed up daily using a tape drive. I don’t think that this will be an issue as this setup is seamless and some workstation operators are not even aware of it.

We have a work process where frequent aerial pesticide spray applications are planned using MapInfo 7.0. The AgNav avionics units in our airplanes require an ESRI shape file (SHP polygon) input of a planned mission, and they provide a file “snail trail” (SHP polylines) of an airplane’s flight and spray activities. When a mission is set up, the mission planning SHP file is provided to the pilot via a thumb drive and the subsequent mission record SHP file is returned via a thumb drive.

I have tried the MapInfo Options/Preferences settings, but I have not found a way for the UT to work in the “My Documents” folder by default. I someone could enlighten me, I would appreciate it.

Doug Wassmer

Pasco County Mosquito Control

Odessa, Florida

[EMAIL PROTECTED]



__________ NOD32 1.1639 (20060703) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


------------------------------------------------------------------------

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


--
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719
Fax:  +44 (0)23 8059 2849

www.geodata.soton.ac.uk

---------------------------------------
For further information about GeoData's
Training Courses, please visit:
www.geodata.soton.ac.uk/training
---------------------------------------


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to