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