Absolutely. Just define your macro with the as follows
DEFAULT_MACRO PATH "C:\temp\shapefiles"
DEFAULT_MACRO FILE "theResult"
and access the values with $() like this
DEFAULT_MACRO DestDataset "$(PATH)\$(FILE)"
and your transformation and output definition would look like this
#------------------------------------------------------------------------
SHAPE_1 outdata \
att1 %c
SHAPE_2 $(DestDataset) \
ATTRIBUTE %c
# -------------------------------------------------------------------------
SHAPE_2_DEF $(DestDataset) \
SHAPE_GEOMETRY shape_polygon \
ATTRIBUTE char(20)
you can modify these Macros on the command line like this
fme myprog.fmw --PATH the/new/path -- FILE theNewFileName
christweekie wrote:
> Hi
>
> Is there anyway of placing a MACRO or some variable definition in a
> .fme mapping file which can affect the directory and / or the
> filename that is used for outputting the file ?
>
> Thanks
>
> 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
>
>
>
>
>
>
>
--
Geordie Hobart
GIS Analyst/Programmer
[EMAIL PROTECTED]
Refractions Reasearch Inc.
400-1207 Douglas St.
Victoria, BC,
Canada, V8W 2E7
phone 250-383-3022
fax 250-383-2140
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/