Glad you got it working Richard. If you want to share your code with more FME'ers you could post it to FMEpedia.com - we're trying to make this the definitive source of user info for all things FME. You'll need to create an account first then email us at [EMAIL PROTECTED] or [EMAIL PROTECTED] and we'll grant you editor privileges.
Thanks Mark --- In [email protected], "RichardW" <[EMAIL PROTECTED]> wrote: > > Many thanks to Peter, Mark and Dale for contribution that encouraged > me to persevere. > > I now have a working framework that allows my mapping file to call a > proc and pass it a user defined parameter. Now I have to turn it > into an application. I still have so much to learn about tcl. > > For the benefit of the rest of the group should they ever want to do > the same my test framework code is below: > (Note) I now find that using a proc means I don't actually have to > define a variable at all. I could just do the call as: > FME_END_TCL source {$(FME_MF_DIR)test_tcl.tcl}; loggit passthis > > > Richard Wilkinson > Leicestershire County Council > > Header contains this > > INPUT_DATASET nullin > OUTPUT_DATASET nullout > # > =============================================================== > FME_END_TCL set rwadmin 10000000 > FME_END_TCL puts \"This is a test $rwadmin \" > FME_END_TCL source {$(FME_MF_DIR)test_tcl.tcl}; loggit $rwadmin > #============================================================== > # > #============================================================== > #! START_WB_HEADER > READER_TYPE NULL > READER_KEYWORD NULL_SOURCE > NULL_SOURCE_DATASET null > WRITER_TYPE NULL > WRITER_KEYWORD NULL_DEST > NULL_DEST_DATASET null > #! END_WB_HEADER > > > > > test_test.tcl contains this > > proc loggit fileid { > puts -nonewline "This is a test " > puts $fileid > } > 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/
