Skip to main content

Hello,

I have a DWG file with two layers. In the first one I have lines representing a nework of pipes. In the second one I have autoCAD text describing the pipes diameters. I would like to create a shape file representing the pipes with their diameter as an attribute.

I linked a DWG reader containing the first layer to a SHP writer to create the shape file representing the network of pipe. How can I extract the text (diameter information) from the second layer of my DWG file and how can I link the diameter to the right pipe in the SHP file ?

Thank you for your help,

The text value will be in the format attribute fme_text_string (you might have to expose that).

You can rename that on the text objects to Diameter by using an AttributeManager transformer.

The NeighborFinder transformer allows you to find the closest text for each pipe and will add the attribute Diameter to the pipe objects.

Finally you need to add it manually to the output definition for the Shape (or set that to Automatic, but that can add too much).


You can find a good example of this in the installed FME Templates:


Thanks for helping a beginner, it is working fine


I have a similar need. Does your DWG file yield text points with a valid coordinate system? The solution from @erik_jan seems to suggest that it does, but in my case the DWG file does not, coordinate system "unknown." Any suggestions? Thx in adv.

 


Reply