Skip to main content
Solved

Indexing chopped line segments

  • November 1, 2022
  • 4 replies
  • 29 views

alfons
Contributor
Forum|alt.badge.img+7

Hello, 

 

for calculations on line segments I divide a line into its individual segments between two vertices (2-point line) using the transformer "Chopper". For a further processing step I need the number of the segment within the total line. This means that if my line consists of 11 vertices, I have 10 line segments. The first line segment should start with the element ID 0. I have tried to do this with a counter, but without success. For this reason, I would like to ask how I can solve this elegantly. Thanks a lot

Best answer by DanAtSafe

it counts all line segments of all lines and dont start a new counting by a new line

 

You'll need to set the Count Scope to Local and check Group Processing; then Group By the unique line attribute value.

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.

4 replies

DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 344 replies
  • November 1, 2022

@alfons​ What problem are you getting with the Counter?


alfons
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • 22 replies
  • November 1, 2022

it counts all line segments of all lines and dont start a new counting by a new line

 


DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 344 replies
  • Best Answer
  • November 1, 2022

it counts all line segments of all lines and dont start a new counting by a new line

 

You'll need to set the Count Scope to Local and check Group Processing; then Group By the unique line attribute value.


alfons
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • 22 replies
  • November 2, 2022

You'll need to set the Count Scope to Local and check Group Processing; then Group By the unique line attribute value.

to switch the count scope to "local" was the the advice. Thanks a lot, now it runs perfectly