Skip to main content
Solved

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

  • October 26, 2017
  • 1 reply
  • 9 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!

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

1 reply

ulfme
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 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!


Reply


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