Solved

Convert a folder of dwg files to dxf

  • 20 February 2016
  • 7 replies
  • 32 views

Trying to convert hundreds of dwg files to dxf, can this be done in FME ?

icon

Best answer by mark2atsafe 22 February 2016, 16:30

View original

7 replies

Userlevel 2
Badge +17

The Dataset Fanout and Dynamic Workflow might be key technologies. Start from these pages.

Userlevel 4
Badge +25

The other way would be to have two workspaces.

Workspace 1: Converts DWG to DXF.

Workspace 2: Uses a File/Directory reader to read a list of files. It has a WorkspaceRunner transformer to run Workspace 1 (to which it passes the name of each file and constructs the output name)

Just run workspace 2 and the files will be translated.

I made a video demo and you can find it here: http://screencast.com/t/pZ3Gu6qR2

I did that demo live (i.e. I hadn't tested it beforehand) and it only took 4 minutes, so it is not a long and complex task.

I know Takashi's solutions would work, but I think this would be easier and less memory intensive (fanouts are notorious for eating up memory and if you have hundreds of files it could be really bad).

Hope this helps

Mark

The other way would be to have two workspaces.

Workspace 1: Converts DWG to DXF.

Workspace 2: Uses a File/Directory reader to read a list of files. It has a WorkspaceRunner transformer to run Workspace 1 (to which it passes the name of each file and constructs the output name)

Just run workspace 2 and the files will be translated.

I made a video demo and you can find it here: http://screencast.com/t/pZ3Gu6qR2

I did that demo live (i.e. I hadn't tested it beforehand) and it only took 4 minutes, so it is not a long and complex task.

I know Takashi's solutions would work, but I think this would be easier and less memory intensive (fanouts are notorious for eating up memory and if you have hundreds of files it could be really bad).

Hope this helps

Mark

Thanks Mark

The Dataset Fanout and Dynamic Workflow might be key technologies. Start from these pages.

Thanks Takashi

The other way would be to have two workspaces.

Workspace 1: Converts DWG to DXF.

Workspace 2: Uses a File/Directory reader to read a list of files. It has a WorkspaceRunner transformer to run Workspace 1 (to which it passes the name of each file and constructs the output name)

Just run workspace 2 and the files will be translated.

I made a video demo and you can find it here: http://screencast.com/t/pZ3Gu6qR2

I did that demo live (i.e. I hadn't tested it beforehand) and it only took 4 minutes, so it is not a long and complex task.

I know Takashi's solutions would work, but I think this would be easier and less memory intensive (fanouts are notorious for eating up memory and if you have hundreds of files it could be really bad).

Hope this helps

Mark

Hi Mark,

 

I know it's almost a lifetime ago, but is there any chance that there is a more recent video tutorial than the screencast you recorded 5 years ago? As it's a Flash file, I've been unable to play it in any browser, even when trying it via https://ruffle.rs/.

 

Any help would be greatly appreciated,

 

Regards

Steven

 

Badge +2

Hi Mark,

 

I know it's almost a lifetime ago, but is there any chance that there is a more recent video tutorial than the screencast you recorded 5 years ago? As it's a Flash file, I've been unable to play it in any browser, even when trying it via https://ruffle.rs/.

 

Any help would be greatly appreciated,

 

Regards

Steven

 

Hi @mccheynes​ ,

In case it isn't available, all the same information about the WorkspaceRunner is outlined in this article. The only difference is that your workspace 1 would be the DWG to DXF workspace rather than the polygon builder that is provided in the downloads section.

Hi Mark,

 

I know it's almost a lifetime ago, but is there any chance that there is a more recent video tutorial than the screencast you recorded 5 years ago? As it's a Flash file, I've been unable to play it in any browser, even when trying it via https://ruffle.rs/.

 

Any help would be greatly appreciated,

 

Regards

Steven

 

Hi Chris,

Thanks for that. I followed the shp conversion example as best as I could, but I am not really any further forward....

I could define the 1st workspace, converting 1 dwg file to 1 dxf file, as a Single Merged Feature Type. I've enabled fme_basename in the Reader.

When I'm defining the WorkspaceRunner Parameters, the 1st Parameter asks me for the Source Files location, which I've set as path_windows. The last Parameter is asking me for the Destination Autodesk AutoCAD dwg/dxf File location, which I've also set as path_windows.

I also added the loggers.

When I then run the Workspace, It fills the directory with the same AutoCAD dwg files, but with a current date/time stamp.

 

How do I configure this such that it is expecting a folder for the dxf files created, and that the output is actually dxf?

 

Any help would be gratefully received.

 

 

Regards

Steven

 

Reply