Skip to main content

Hello All,

 

Im trying to extract the points (in order) of an AutoCAD line. Ive managed to extract the points, the coordinates and do most of the workflow, but I cant get the Point ID.

 

 

In the attached, Im looking for an additional column that will give me Point IDs 1,2,3,4 etc per l;ayer.

 

Hi @cfordigan,

You can use a Counter transformer, group by the layer (counter name = 'your layer name')

You can rename the resulting attribute in the transformer (e.i _count = ID)

Or...

Use the FME Feature Function Count in an attribute creator ( more advanced)

Hope this helps,

Itay


If you use a CoordinateExtractor to extract all coordinates to a list, instead of chopping, you can then explode the list into points, and the index of each point will be written as an attribute


Awesome! It works and I love FME!

Hi @cfordigan,

You can use a Counter transformer, group by the layer (counter name = 'your layer name')

You can rename the resulting attribute in the transformer (e.i _count = ID)

Or...

Use the FME Feature Function Count in an attribute creator ( more advanced)

Hope this helps,

Itay

Thankyou! Worked


Hi @cfordigan,

You can use a Counter transformer, group by the layer (counter name = 'your layer name')

You can rename the resulting attribute in the transformer (e.i _count = ID)

Or...

Use the FME Feature Function Count in an attribute creator ( more advanced)

Hope this helps,

Itay

Used the counter too. Thankyou!