Skip to main content
Solved

Convert a folder of dwg files to dxf

  • February 20, 2016
  • 7 replies
  • 178 views

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

Best answer by mark2atsafe

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 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

View original
Did this help you find an answer to your question?

7 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • February 20, 2016

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


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • Best Answer
  • February 22, 2016

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 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


  • Author
  • February 23, 2016
mark2atsafe wrote:

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 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


  • Author
  • February 23, 2016
takashi wrote:

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

Thanks Takashi


mark2atsafe wrote:

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 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

 


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • May 10, 2021
mccheynes wrote:

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.


mccheynes wrote:

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

 


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