Skip to main content
Question

File Copy Writer - Copy a DWG file from one folder to another

  • December 15, 2023
  • 2 replies
  • 109 views

boomer87
Contributor
Forum|alt.badge.img+5

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

2 replies

pimc
Contributor
Forum|alt.badge.img+8
  • Contributor
  • December 18, 2023

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 [PATH] 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 [PATH] 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


boomer87
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 18, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings