Skip to main content
Solved

Using Feature Writer to generate single .dwg file from two processed .dwg files.


lorenrouth
Contributor
Forum|alt.badge.img+8

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?

Best answer by lorenrouth

lorenrouth wrote:

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.

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

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

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.


lorenrouth
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • May 24, 2023
nielsgerrits wrote:

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


lorenrouth
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • Best Answer
  • May 24, 2023
lorenrouth wrote:

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.


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