Skip to main content
Question

AutoCAD Lines to Points and include Point ID

  • September 20, 2019
  • 5 replies
  • 62 views

Forum|alt.badge.img

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.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • September 20, 2019

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


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • September 20, 2019

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


Forum|alt.badge.img
  • Author
  • 14 replies
  • September 20, 2019
Awesome! It works and I love FME!

Forum|alt.badge.img
  • Author
  • 14 replies
  • September 20, 2019

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


Forum|alt.badge.img
  • Author
  • 14 replies
  • September 20, 2019

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!