Question

Find a bunch of dwg files and write to SHP

  • 30 March 2020
  • 1 reply
  • 11 views

Currently trying out FME in demo mode and am definitely green at FME so this is a beginner question.

I currently have a workbench setup to read a single dwg, run it through a tester to filter out only the desired layers, and then write it to shp format with the dwg_name and layer_name as attributes.

I have also discovered the PATH reader which I have configured to search a drive and all sub-folders to generate a list of all of the dwg files I want to run through the above.

How do I combine them?

There is a related question 80618 "How to iterate through a list of .dwg file in order to convert them to .shp format" but I am not quite following it, and I have multiple sub-folders.

 

 


1 reply

Userlevel 2
Badge +19

If I have understood your goal, you need to do the following:

Add PATH Reader to get the path of al the *.dwg files of your folders and subfolders.

 

 

Add a FeatureReadr. Join the output of the PATH Reader to the FeatureReader. Configure the FeatureReader to read DWG files. The path of each dwg is given by the attribute "path_window" of the PATH Reader.

 

Add a SHAE Writer and join the output of the FeatureReader to it.

Reply