Hi

Tcl has a global array env() containg all enviroment variabels

In your tcl sript just call this variable, se below, I use the regsub stuff, 
in order to convert the \ into /  this is just to be safe, as a path with / 
in somtimes give problems in tcl

set tmpDir [regsub -all -- {\\} $env(FME_TEMP) {/}]

I use this quite a bit,  in some project I set up a enviroment varialbe to 
where the data are placed, by setting this varaible on a pc, the mapping 
file can run on this without any other modifications


Peter Laulund


>From: "mark2atsafe" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [fme] Re: Problem with shared directories
>Date: Sat, 05 Aug 2006 19:47:49 -0000
>
>...and as soon as I sent that email I found what I was looking for.
>
>See http://tinyurl.com/e5xaw on fmepedia. It tells you the environment
>variables to find the default transformers folder for either a user or
>the whole fme installation.
>
>I think you should be able to use the environment variable in the path
>to your TCL. You might have to just select the file first, and then
>edit the path afterwards, inserting the variable.
>
>Hope this helps,
>
>Mark
>
>Mark Ireland, Senior Product Specialist
>Safe Software Inc. Surrey, BC, CANADA
>[EMAIL PROTECTED] http://www.safe.com
>Solutions for Spatial Data Translation, Distribution and Access
>
>--- In [email protected], "mark2atsafe" <[EMAIL PROTECTED]> wrote:
> >
> > Michael,
> > I'm 99% certain there is an environment variable that points to the
> > shared directory - but I'm really having problems finding it. I will
> > keep looking...
> >
> > Mark I
> >
> > --- In [email protected], "mhabarta" <mhabarta@> wrote:
> > >
> > > Hallo FME2006 experts
> > >
> > > I try to utilize the "Shared Directory" feature in FME 2006GB.
> > > So far so good, nice feature.
> > >
> > > Problem:
> > > I want to call a TCL script from a custom transformer, which
> > > resides in the "transformers" Subdir where the shared transformer
> > > is.
> > >
> > > Is there any MACRO which refers to the "Shared Directory" setting,
> > > so I can stay independent of the setting ?
> > >
> > > Thanks Michael
> >
>
>
>
>
>
>
>
>Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
>Canada. For more information, visit www.safe.com/2006uc.
>Yahoo! Groups Links
>
>
>
>
>
>
>

_________________________________________________________________
Download din yndlingsmusik på MSN Music:  http://www.msn.dk/music  det er 
nemt og billigt






Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
Canada. For more information, visit www.safe.com/2006uc.   
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to