Hi Chris What you try to do is to execute a function at mapping file parsing time, normaly FME would execute a function when a feature is going trough a factory.
So to tell fme to execute the function when the mapping file are parsed, you have to put the function within $[ .. ], in your case MACRO zFileName [EMAIL PROTECTED](ROOTNAME,$(SourceDataset_SHAPE_IN))] in the fme help/ documentation look for Static Function Evaulation Peter Laulund National survey and cadastre, denmark >From: "Chris" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [fme] Problem with @Filenamepart in mapping file >Date: Fri, 12 Aug 2005 15:12:21 -0000 > >Hello, > >I am having difficulty using the @Filenamepart function when setting >the macro zFileName: > >MACRO zFileName @Filenamepart(ROOTNAME,$(SourceDataset_SHAPE_IN)) > >It appears that the root name from $(SourceDataset_SHAPE_IN) is not >being read. I am using the macro zFileName to set parameters throught >the mapping file and if I use a GUI TEXT and manualy set the macro >zFileName then the fme mapping file works fine. > >Is there something missing in my syntax? > >Thank You, > >Chris > > > > > > > >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 > > > > > > <BR><HR>FREE Spam Protection! <A HREF="http://www.spamextract.com/download.php">Click Here.</A><BR>SpamExtract Blocks Spam.<br><br> _________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/ 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/
