Skip to main content
Question

Match / compare multiple DWG files from separate directories.

  • September 8, 2013
  • 2 replies
  • 82 views

gschleusner
Contributor
Forum|alt.badge.img+2
Hi,

 

 

I'm trying to make a workspace that wil compare 2 folders of  2d DWG files using the match transformer and will output a DWF file for each pair of DWG's that share the same name. My goal is to deliver a dwf that shows the changes between two revisions of files hense the two folders.  

 

 

The workspace works as expected on individual files, but when I try to run it from two directories it compares all the files from each at once.  When I try to run it using the batch command I can only specify one of the source folders and then it compares all files int he second folder against the sequence of files in the first folder.

 

 

How do I tell the transformer to only compare files from the source folders that have matching names.  

 

 

Also how do I set the dwf writer to write a file per named dwg pair?

 

 

I would prefer to be able to generate a dwf per dwg set via the workslpace as I'd like to push this up to the Server so teams could simply give it two folders vs having to make this a batch command.

 

 

Any help would be great. 

 

 

Thanks,

 

 

Greg
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.

2 replies

takashi
Celebrity
  • September 9, 2013
Hi Greg,

 

 

I suppose you need to compare features in only files which have the same name.

 

If so, expose "fme_basename" attribute (file name without extension) and specify it to "Selected Attributes" parameter of the Matcher (Attribute Matching Strategy = Match Selected Attributes). Then the Matcher will compare features only having the same "fme_basename".

 

When writing the results, you can also use "fme_basename" as the fanout attribute of the writer so that the destination files will be separated based on the source file names.

 

 

Takashi

gschleusner
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 13, 2013
THis worked great.. Thanks for your help.  I will post an update in a bit as I need a little help as now it seems I'm loosing line wieights of the drawings and its all coming out as huge blobs.

 

 

 

 

Greg