Skip to main content
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
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
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

Reply