Sometimes when I do a transformation from dwg to shape everything is included in 1 polyline (text, pipes, arrows) and when I look at it in inspektion mode I see that the dwg is splitting the lines by color, how do i do the transformation with a separation by color or adding the color value inside the whole polyline
Sorry if my vocabulary is wrong
Page 1 / 1
I think you want a different shapefile for different attribute values?
You are then looking for “fanout”. The shapefile name can be defined by an attribute value. For example autocad_layer.
@akeeri
Is your problem that FME while converting from dwg to shp is separating out the data which is in a single layer in the dwg file?
If yes, then this is the default behaviour as shp file format supports only one geometry type per file.
If you can provide more details on what is the data in the dwg file and how you would like to get this to shp format, I can provide you with some guidance.
Happy FME ing
Cheers
SRG
My problem is when I transform this dwg it creates a shapefile (0_line.shp ) and the polyline dont have any attribute so all are the same see bottom picture. When I do an inspection the only difference that I can see is that they are colored different. Is som other differentiation possible? so I thinking that I can use the color (red+green) to only get the line for the cables, otherwise i have to manually delete all other features
I think you want a different shapefile for different attribute values?
You are then looking for “fanout”. The shapefile name can be defined by an attribute value. For example autocad_layer.
Where do i find this menu in FME2019?
@akeeri
I hope you are using FME Workbench to do the autocad dwg to shape conversion.
If yes, then you can rename the Writer FME FeatureType in your workspace from 0_line to “Cables” or whatever you wish the name of the output shape file to be.
For the data from the 0 layer in the autocad dwg file, you will notice a mapping in the FME Workspace for this with a GeometryFilter, whose line output port will be mapped to 0_line Writer feature type.
Just introduce a simple tester transformer between the connection from the GeometryFilter Line output port and the 0_line Writer feature type.
Depending on which layers contain your cables in autocad dwg, you will need to send them through this tester.
On the reader feature type 0, you will need to expose autocad_color format parameter, so that in the tester, you can set autocad_color filter to a specific value.
See screenshots for guidance:
Let me know if this helps
Happy FME ing
Cheers
SRG
I think you want a different shapefile for different attribute values?
You are then looking for “fanout”. The shapefile name can be defined by an attribute value. For example autocad_layer.
Where do i find this menu in FME2019?
This is the FeatureWriter transformer. Which is more intuitive than the classic writers.