Skip to main content
Solved

How to write several DXF OR DWG files after coordinate transformation from one input directory into another output directory?

  • March 21, 2017
  • 5 replies
  • 114 views

I would like to transform a directory with several DXF oder DWG files with a coordinate transformation and write all the DXF or DWG files into one new directory. How can I write all the files with the same schema as the input files? I need an output file per input file. I only get one merged output file from the input files. I tried to do that with dynamic reader and writer. How can I get the same amount with same schema of output files like the input files? With esri shapefile this ist easily possible with dynamic workflow.

Thank you!

Best answer by erik_jan

Look for the setting "Fanaout Dataset" on the Writer.

Use the attribute fme_basename as the Fanout attribute (it contains the name of the file from the Reader).

That allows you to create the same files in a different folder on the output.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

erik_jan
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Best Answer
  • March 21, 2017

Look for the setting "Fanaout Dataset" on the Writer.

Use the attribute fme_basename as the Fanout attribute (it contains the name of the file from the Reader).

That allows you to create the same files in a different folder on the output.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • March 21, 2017

Dynamic is the way to go for this job, but as @erik_jan mentions, the dynamic transformation will use the fme_feature_type ( in cad terms layer or level), what you need is the fme_basename (file name).


  • Author
  • March 23, 2017

Thank you for the suggestion.

I made a AttributeExposer with Attribute to Expose: fme_basename. I tried to set the writer but it's not working yet.

How can I configurate the writer that I get the dxf files?


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • March 23, 2017

Thank you for the suggestion.

I made a AttributeExposer with Attribute to Expose: fme_basename. I tried to set the writer but it's not working yet.

How can I configurate the writer that I get the dxf files?

I think that this is a good place to start when trying a dynamic translation:

 

https://knowledge.safe.com/articles/1050/dynamic-workflow-tutorial-introduction.html

 

 

And in your case this I would recommend this too:

 

https://knowledge.safe.com/articles/1157/dynamic-workflow-tutorial-destination-schema-as-a.html

 

just mind the difference between the GIS example and your CAN data , especially the difference between the fme_basename and fme_feature_type

 

 

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/!FeatureTypeProperties/feature_types_attributes.htm?Highlight=basename#About2

 

 


  • Author
  • July 6, 2017

thank you @itay, unfotunately this is not helping for my problem. I made a new attempt for solving it because it would be very helpful for several workflows.

I follow the steps like in the tutorial "Dynamic Workflows: Destination Schema as a Mirror Image of the Source Dataset " described, but there is no automaticlly published Parameter called 'Feature Types to Read'.

I can write shapefile data dynamically in a new folder and the difference with the feature type to CAD data is clear but I can't implement it for the CAD data. I need something like a feature type fanout in the writer from the feature type, but I don't know how.

Can someone help me?