Skip to main content
Question

Workbench to convert any DWF to a DXF

  • February 25, 2022
  • 1 reply
  • 50 views

nicholas
Contributor
Forum|alt.badge.img+11

I want to build a workbench (for publishing to a FME Server) that converts any DWF file to a DXF file of the same name. I started by use the Generate Workspace Dialog and ticked Dynamic Schema. However, the name of the output DXF is hardcoded. I would like the name of the output DXF to be the same as the name of the input DWF (with DXF extension). How do I make this work?

1 reply

jovitaatsafe
Safer
Forum|alt.badge.img+11

Hi @nicholas​,

Try setting the 'Fanout Dataset' in your AutoCAD DWG writer to the attribute fme_basename with the extension .dxf. This attribute holds the source dataset's file name without the extension, so you can use it as a dataset fanout to keep the output the same name.

 

To do this, you'll need to first expose the attribute in your reader feature type parameters by double-clicking the reader feature type, going to Format Attributes, and checking 'fme_basename'. Then in the Writer parameters (right click - edit...), enable Fanout Dataset, select the three dots [...] to open the Text Editor, double click fme_basename and type in .dxf. It'll look something like this in the navigator when you're done:

 

fanout-datasetHope that gets it working for you as well!


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