Skip to main content
Solved

Is it possible to read Layer Filters (Group and Property) from a DWG/DXF?


I have an AutoCAD model that I'm trying to convert to GIS, but I can't seem to figure out whether it is possible to read Layer Filter information in any way. The model uses both Group and Property filters. Can anyone point me in the right direction as to whether this functionality already exists in FME Desktop? And if not, is it something that would be possible? I'm not even sure how layer filters are saved/accessed in a DWG, and I guess I wouldn't expect them to be attached directly to an object. Thank you!

Best answer by fmelizard

Hi @fewfewfew,

 

 

At this point I don't think FME supports reading Layer Filters, however, @jneujens is right in that you can use FME to read in the layer properties (these will be attached to each feature). To add the layer properties you can enable a parameter on the AutoCAD Reader called 'Store Layer Properties on Features'. These attributes will come in as hidden attributes and can be exposed by selecting them in the Additional Attributes to Expose Dialog. Check out this page for more info on AutoCAD specific attributes.

 

In addition if you are finding that your workspace is getting to cluttered with incoming FeatureTypes. Consider enabling dynamic mode by using the 'Single Merged Feature type' option when adding the reader. You may need to use a few more transformers/filters (such as GeometryFilters, FeautreTypeFilters, TestFilters, or AttributeFilters) to isolated the features you're interested in but for the most part I find it ends up being much more manageable, particularly when you are working with many many Layers.

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

6 replies

jneujens
Forum|alt.badge.img
  • July 28, 2017

I understand this correctly: you want to read the filter logic or filter rules from your .dwg and use this in FME? As far as I know, this is not possible directly.

 

 

What is feasible with FME, is to store layer properties on each feature. This is a setting in the autocad reader. Once you have these layer properties, you can 'rebuild' the filter with a TestFilter.

jneujens
Forum|alt.badge.img
  • August 1, 2017
jneujens wrote:

I understand this correctly: you want to read the filter logic or filter rules from your .dwg and use this in FME? As far as I know, this is not possible directly.

 

 

What is feasible with FME, is to store layer properties on each feature. This is a setting in the autocad reader. Once you have these layer properties, you can 'rebuild' the filter with a TestFilter.
fewfewfew Did that answer your question?

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • August 1, 2017

Hi @fewfewfew,

 

 

At this point I don't think FME supports reading Layer Filters, however, @jneujens is right in that you can use FME to read in the layer properties (these will be attached to each feature). To add the layer properties you can enable a parameter on the AutoCAD Reader called 'Store Layer Properties on Features'. These attributes will come in as hidden attributes and can be exposed by selecting them in the Additional Attributes to Expose Dialog. Check out this page for more info on AutoCAD specific attributes.

 

In addition if you are finding that your workspace is getting to cluttered with incoming FeatureTypes. Consider enabling dynamic mode by using the 'Single Merged Feature type' option when adding the reader. You may need to use a few more transformers/filters (such as GeometryFilters, FeautreTypeFilters, TestFilters, or AttributeFilters) to isolated the features you're interested in but for the most part I find it ends up being much more manageable, particularly when you are working with many many Layers.


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • August 1, 2017
fmelizard wrote:

Hi @fewfewfew,

 

 

At this point I don't think FME supports reading Layer Filters, however, @jneujens is right in that you can use FME to read in the layer properties (these will be attached to each feature). To add the layer properties you can enable a parameter on the AutoCAD Reader called 'Store Layer Properties on Features'. These attributes will come in as hidden attributes and can be exposed by selecting them in the Additional Attributes to Expose Dialog. Check out this page for more info on AutoCAD specific attributes.

 

In addition if you are finding that your workspace is getting to cluttered with incoming FeatureTypes. Consider enabling dynamic mode by using the 'Single Merged Feature type' option when adding the reader. You may need to use a few more transformers/filters (such as GeometryFilters, FeautreTypeFilters, TestFilters, or AttributeFilters) to isolated the features you're interested in but for the most part I find it ends up being much more manageable, particularly when you are working with many many Layers.

P.S if you want to see FME pick up the Layer Filters you have, I suggest posting an idea over here and voting on this.

 

 


  • Author
  • August 2, 2017
jneujens wrote:
fewfewfew Did that answer your question?
Yes, thank you!

  • Author
  • August 2, 2017
fmelizard wrote:

Hi @fewfewfew,

 

 

At this point I don't think FME supports reading Layer Filters, however, @jneujens is right in that you can use FME to read in the layer properties (these will be attached to each feature). To add the layer properties you can enable a parameter on the AutoCAD Reader called 'Store Layer Properties on Features'. These attributes will come in as hidden attributes and can be exposed by selecting them in the Additional Attributes to Expose Dialog. Check out this page for more info on AutoCAD specific attributes.

 

In addition if you are finding that your workspace is getting to cluttered with incoming FeatureTypes. Consider enabling dynamic mode by using the 'Single Merged Feature type' option when adding the reader. You may need to use a few more transformers/filters (such as GeometryFilters, FeautreTypeFilters, TestFilters, or AttributeFilters) to isolated the features you're interested in but for the most part I find it ends up being much more manageable, particularly when you are working with many many Layers.

Thank you! This is all great to know. I think I can already import many of these layer properties directly to ArcGIS using the CAD to Geodatabase tool, but I was hoping that I could preserve the group filters (assigned and named by me, not a filter rule) using FME. It doesn't sound like that it possible. But I'll try submitting the idea, as you suggested in your PS. Thank you again!

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