Hi Chris,
Yes this makes absolute sense, and yes you can copy a transformer from
one workspace to another. Simply right-click and choose copy, then
right-click and paste in a new workspace. You should also be able to
copy and paste source/destination Feature Types and can even paste items
to a text editor if you want to see how that transformer is defined in a
mapping file.

Try to limit yourself to copying transformers to and from workspaces
created in the same build of FME. There could be problems if you created
a transformer in a new build and copied it to a workspace you were
running in an older build.


Also, as an aside, since you say the workflow is always the same at the
start of the workspace an alternate method would be to create a Custom
Format.

A custom format is a form of template workspace. It has a set of
transformers that forms the root of future workspaces.
It is probably easier to describe in terms of your needs.

Open Workbench. Choose File->New from the menubar. Select 'create a
custom format'
A wizard starts. Select your source format and choose a file. 
The exposed parameters option depends on if these settings might be
changed at any future point. If so put a tick next to them.
Give your new format a name and description (eg myrenamerformat)
Now a workspace is set up. Insert your attributeRenamer transformer (yes
you can copy from an existing workspace) and connect it up.
Now save this.

The next time you require a workspace that includes the AttributeRenamer
instead of choosing Mapinfo/shape/whatever for the source format choose
myrenamerformat.
FME will then create a new workspace. Although you don't see the
AttributeRenamer it is there inside the custom format.

Does this make sense? I hope so. 
There is a movie file at
http://www.safe.com/products/fme/components/movies.htm which gives a
good example. The movie is entitled "More FME Extension for ArcGIS 8.3"
- it is more related to using FME with ArcGIS but the custom format part
is a good general example of how this technology works.

Hope this helps, but to confirm your original question - yes you can
copy and paste transformers between workspaces.
Regards,

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


> -----Original Message-----
> From: fme_user [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 03, 2005 6:35 PM
> To: [email protected]
> Subject: [fme] Copying transformers between workspaces
> 
> 
> 
> 
> 
> Hi All,
> 
> I was wondering if it is possible to copy a transformer with 
> all of its settings from one workspace to a different 
> workspace.  For Example, I have the attributerenamer setup 
> renaming about 50 attributes from a database going into 
> another transformer.  This work flow is always the same in 
> the beginning of the workspace, what changes is the final output. 
> I am given a workspace with just the final output defined and 
> I have to get my database attributes into this final output 
> and I always use the attributerename to create descriptive 
> names for attributes but was wondering, if for each new 
> workspace, do i need to re-create the renaming from scratch?
> 
> I am using FME Pro. Build 1378
> 
> I hope this makes sense.
> 
> Thank-you for any suggestions,
> 
> 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
> 
> 
> 
>  
> 
> 
> 
> 


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