Skip to main content

I am trying to read in two separate .dwg files, make changes, assign layer names with Feature Writer inputs, and then output to a single .dwg file.

But, the data is not combined and it outputs two files from their respective reader instead.

My hunch is that the Feature Writer is seeing different schemas coming in, but I can't figure out how to combine. This is one of those "seems easy, what am I missing" issues..I guess?

Can you elaborate a bit more how the workspace is designed?

 

If you have multiple readers connected to a single writer, the features from the different files will be merged into one as expected.


Can you elaborate a bit more how the workspace is designed?

 

If you have multiple readers connected to a single writer, the features from the different files will be merged into one as expected.

Hi @nielsgerrits,

Here are a few pics. I also uploaded the workspace. I can't share the .dwg files but they contain 2 layers with polylines, lines and text. The Workspace processes the geometry and text to create new layers that are the inputs to the Feature Writer. I fully expected the features to be merged, but nope:

 

FeatureWriterSchema1Schema2RevitCADToOASIS


Hi @nielsgerrits,

Here are a few pics. I also uploaded the workspace. I can't share the .dwg files but they contain 2 layers with polylines, lines and text. The Workspace processes the geometry and text to create new layers that are the inputs to the Feature Writer. I fully expected the features to be merged, but nope:

 

FeatureWriterSchema1Schema2RevitCADToOASIS

I think I figured it out: The Featurewriter needs all the inputs to have the same attribute and value if you are going to use that attribute to name the file. For instance, I am using part of the filename from one of the two files as the new file name. So, I had to do a FeatureMerger to make sure that attribute and value populated features from the other CAD file source. The notion FeatureWriter will "merge everything into one file" regardless, is not quite accurate: You have to make sure all features have the same attribute and value when programmatically naming files with an attribute.


Reply