Skip to main content
Solved

I'm using a Workspace Runner to do a Shp to DWG converstion for several hundred files. I cannot get a prompt for the output folder to ask for a folder rather than a specific file name

  • September 22, 2020
  • 3 replies
  • 22 views

Here's some screen shots of the very simple shp to dwg workspace and the workspace runner parameters

 

Best answer by catmoody

Thank you both. There was information from both replies that helped me solve this. As Howard indicated, I did not need a workspace runner to accomplish it, but based on hkingsbury's recommendation, I did use the fanout. I was still passing fme_basename just like in my first screen shot so I was able to use that in the dwg writer. The two screen shots below show the configuration I used.

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.

3 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • September 22, 2020

I'm no DWG expert, but in your example I think you're going to be writing all SHP to the same DWG just with different layer names.

 Screenshot 2020-09-23 084600

A better approach would be to enable fanout on your writer (right click on the writer under the navigator and select Edit Parameters)

 


Forum|alt.badge.img+1
  • 44 replies
  • September 23, 2020

catmoody,

To do your conversion - if that's all u are doing, you do not necessarily need a workspace runner.

Anyway, you could try:

 

Use

FilenamePartExtractor Transformer

This will give you useful attributes of all your input files especially eg _rootname. These will be your source shapefile names. You can then use these attributes to build the output filenames of your DWGs

 

User Parameter

create a user parameter for output folder eg OUTPUT_FOLDER

 

Output - Writer

Output location and filename can then be defined by output folder (user param) and input shapefile name

(_rootname) to create multiple CAD files eg

$(OUTPUT_FOLDER)\\@Value(_rootname).dwg

..............................

Currently, yes it appears as if u are fanning out - so as to produce CAD layer names from your input shapefile names - all in a single CAD file

.............................

Anyway,

hope this helps, gives u some ideas

Howard L'

 

 

 

 

 

 


  • Author
  • 2 replies
  • Best Answer
  • September 24, 2020

Thank you both. There was information from both replies that helped me solve this. As Howard indicated, I did not need a workspace runner to accomplish it, but based on hkingsbury's recommendation, I did use the fanout. I was still passing fme_basename just like in my first screen shot so I was able to use that in the dwg writer. The two screen shots below show the configuration I used.