Hi Richard,
I haven't asked around but my theory would be that the TCL is being
run in a separate FME process - one which uses a temporary mapping
file called wb-xlate-a03680 (or whatever).

Suggestions...

1) Use $FME_MappingFileId - I don't know what this is supposed to give
- but you can try it and see.

2) Create a macro within the workspace that contains the filename and
pass that through to the TCL. I think you can do this as...

FME_END_TCL source xxxx.tcl; procname {$(macroname)}

There have been a few recent messages here about how to pass info to
the TCL. You may also find fmepedia.com useful

http://www.fmepedia.com/index.php/Pre_and_Post_Processing_with_TCL_FAQ

Hope this helps

Mark

Mark Ireland, Product Support Engineer
Safe Software Inc. Surrey, BC, CANADA
[EMAIL PROTECTED] http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access


--- In [email protected], "RichardW" <[EMAIL PROTECTED]> wrote:
>
> A Happy new Year to all FME'ers
> 
> FME_MF_NAME should expand to the name of the mapping file.
> 
> To test this expansion I put the following line in the mapping file 
> header, taken from the example in the documentation.
> 
> TCL puts {FME_MF_NAME= $(FME_MF_NAME)}
> 
> It produced the following output
> 
> FME_MF_NAME= wb-xlate-a03680
> 
> 
> My Mapping file is called AggregateTest.fmw which is what I expected 
> FME_MF_NAME to expand to but it did not.  
> 
> Can anyone explain this and tell me how I can get the actual .fmw 
> filename from within a fme_end_tcl script.  I want to include this in 
> my log entry.
> 
> Thanks
> Richard Wilkinson
> Leicestershire County Council
>







Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our 
Professional Services team.  Visit www.safe.com/services for details. 
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