Skip to main content
Question

Add an accompanying Word Doc to my fanout zip folders

  • December 9, 2024
  • 3 replies
  • 49 views

jlorenzetti
Observer
Forum|alt.badge.img+1

I’m fairly new to FME and I’m not sure this is possible. I’m attempting to add a MS Word doc. to multiple zip folders (from a fanout) that contain shapefiles. It’s basically a data dictionary that needs to accompany the shapefiles.  Is this possible?

3 replies

liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • December 9, 2024

Yes this should be possible. You will need to use a Microsoft Word Writer set to fanout the same way that you are fanning out the shapefiles. I recommend referencing these for Word Writing:
https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/msword/msword.htm

and for working with zips:

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/zip_files_writing.htm


jlorenzetti
Observer
Forum|alt.badge.img+1
  • Author
  • Observer
  • December 10, 2024

Thanks--I’ve read up on both the writer and transformer but it seems like this is a way to create a word doc and not just read it and write it to a new location. However, it does say “The writer can either create a new document or append to the end of an existing base document” but, I don’t see a reader that allows me to bring in the Word doc.


liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • December 10, 2024

Ah okay, I was thinking you were wanting to make new word docs during the process. If the files already exist and you want to copy them to new locations, then what you are looking for is the FileCopy Writer.