Skip to main content
Hello!

 

 

Extremely new to the FME environment.  With 420+ transformers it is hard to know where to begin.  I am starting with an ESRI (line) shapefile that contains two attribute columns:

 

 

SUBTYPECD (numeric) with values a1,2,3,4,5,6]

 

VOLTAGECD (numeric) with values v2,20,23]

 

 

Using five TESTER transformers I have various combinations of conditions that I am wanting to "route" to five specific layers in an AutoCAD template file.  The linetypes and colors are already set in the template.  My question is, how does one process the output of a "pass/fail" tester and  have it decode into a text string (e.g. "PRIMARY-26KV") that I can then send to the AutoCAD drawing writer?

 

 

This process must be also repeated for a myriad of POINT and ANNOTATION objects.  Does anyone have a sample model for converting multiple shapefiles (really needs to be SDE, but that is later) into a single AutoCAD template file that has layers, colors, linetypes and block (with attributes) predefined?

 

 

Any suggestions would be greatly appreciated.

 

 

Lynn

 

Seattle City Light

 

Hi,

 

 

Welcome to the world of FME ! 

 

There are plenty of resources where you can start and get a better understanding of FME, its methodologies and vocabulary.

 

Go to the home page for some video demos or the knowledge base for a more technical approach, naturally the documentation is a must.

 

 

I would suggest getting to know how FME deals with data fan out.

 

 

Using five TESTER transformers I have various combinations of conditions that I am wanting to "route" to five specific layers in an AutoCAD template file

 

 

You can reduce the 5 testers by one testfilter, but since you want to create a new features (=autocad layer) that correspond to a given test result, I would suggest using the attribute creator.

 

In this one transformer you can do the testing and creation of new features all in one go.

 

To make use of your predefined layer properties, use the template in the writer. You do have to make sure that the new features name correspond the the layer name in the template.

 

The routing to different layers is then done by using the fan out option, on the created features/layers.  

 

 

If the testing is applicable to your other feature types (annotations and points) then you can use the workspace to process all feature types, and also directly from SDE.

 

 

Hope this helps.

 

 

Itay

 

 


Itay,

 

 

Thank you for your input.  I did end up using an "AttributeCreator" transformer because the logic (numeric) I was using to determine the different layers didn't actually resolve in to a text STRING value.

 

 

A curiousity though.  I tried to combine five "Tester" ransformers in to a single "TestFilter", complete with FIVE test cases.  However, the logic only produced FOUR output ports.  Very confusing.  I would like to post a screenshot of that "TestFilter" transfoprmer, but I'm not sure how to do that.

 

 

It was a great help.  Thank you!

 

 

Lynn

Reply