Skip to main content

This is a silly question, but I can't seem to use the File Copy writer to copy a DWG file to another folder properly. The transformation seems to run with no issues, but when I check the output folder I specified, the DWG file is not there.

In the Reader, I chose to merge it as a single merged type, as the DWG has about 30+ individual layers in it.

Is there a method to ensure I just copy over the whole DWG file into another folder? I don't want to move the original file, simply make a copy of it to another folder.

Thanks everyone

Hi there!

 

It sounds like you're using a DWG reader in your Workspace. However, the Filecopy writer expects a path with the location of the source file (one feature with the path is enough to copy the entire file to your configured destination).

 

A common setup is a Directory and File Pathnames sPATH] reader, which reads files from a location on your machine and stores the path in an attribute. You can then use this attribute as a source for your Filecopy Writer.

 

To summarize:

  • The File Copy writer is configured with the destination where you want to copy your file(s) to
  • The File Copy writer expects an attribute containing the original location of your file(s) to copy from (filecopy_source_dataset)
  • The Directory and File Pathnames ePATH] reader can be used to easily extract file paths and use them as input for your File Copy Writer

 

Hope this helps and good luck!

 

Pim


Hi @pimc​ !

 

Thanks so much for the resposne! I'll fiddle around with the Directory and File Pathnames reader and see if that can resolve the issue! Thanks again!

 

 


Reply