Skip to main content
Solved

Globally update DWGStyler Block\\Name source with new source DWG

  • October 26, 2017
  • 1 reply
  • 16 views

I'm moving a workspace to a new PC and I have about 40 DWGStylers inserting blocks. Is there a quick way to update the source dwg for the block inserts? I'm hoping not to have to right click on each one and browse a new location for the DWG.

Best answer by ulfme

Well... This is in no way a "Best Practice" solution but your FME Workspace really is a text-file so you could in theory do a replace in the textfile with a text-editor. The parts to replace paths in would look something like the below - but as the workspace is generated automtically it can differ and be tricky.

 

#!  <XFORM_PARM PARM_NAME="TEMPLATE_FILE" PARM_VALUE="C:\FMEData2017\Data\Transportation\CompleteRoads.dwg"/>

Now this is not really a supported solution but could do the trick for you if you examine the file and replace the correct parts only. 

 

 

A better way in the long run would be to construct the paths to the files as Published Parameters to be able to change paths more easily in the future. I'm sure this would be worth the effort!

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.

1 reply

ulfme
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 22 replies
  • Best Answer
  • October 26, 2017

Well... This is in no way a "Best Practice" solution but your FME Workspace really is a text-file so you could in theory do a replace in the textfile with a text-editor. The parts to replace paths in would look something like the below - but as the workspace is generated automtically it can differ and be tricky.

 

#!  <XFORM_PARM PARM_NAME="TEMPLATE_FILE" PARM_VALUE="C:\FMEData2017\Data\Transportation\CompleteRoads.dwg"/>

Now this is not really a supported solution but could do the trick for you if you examine the file and replace the correct parts only. 

 

 

A better way in the long run would be to construct the paths to the files as Published Parameters to be able to change paths more easily in the future. I'm sure this would be worth the effort!