Hi everyone,
I am creating a model to make it quicker to convert DWG files to SHP. They have the same format but there are several hundred files in various folders. The DWG files get updated from time to time, so the tool will be used often which is why I would like to set it so I only have to input the DWG file and the rest is automated.
For example:
C:\\CAD\\A\\1\\points.dwg
C:\\CAD\\A\\2\\points.dwg
C:\\CAD\\A\\3\\points.dwg
C:\\CAD\\B\\1\\points.dwg
C:\\CAD\\B\\2\\points.dwg
Etc....
I need to write it to the GIS folders which are very similar
C:\\GIS\\A\\1\\points.shp
C:\\GIS\\A\\2\\points.shp
C:\\GIS\\A\\3\\points.shp
C:\\GIS\\B\\1\\points.shp
C:\\GIS\\B\\2\\points.shp
Etc....
I have used FilenamePartExtractor to get the filepath of the DWG and then used StringReplacer to replace "C:\\CAD\\A\\1\\" with "C:\\GIS\\A\\1\\". Is there a way I can use this value to specify the output location?
It has worked to specify a filename, but no luck with filepath so far.
Thanks in advance!