Skip to main content
Question

AutoCAD Lines to Points and include Point ID

  • September 20, 2019
  • 5 replies
  • 49 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.

 

5 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • 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+32
  • Influencer
  • 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
  • September 20, 2019
Awesome! It works and I love FME!

Forum|alt.badge.img
  • Author
  • September 20, 2019
itay wrote:

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
  • September 20, 2019
itay wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings