You are currently reviewing an older revision of this page.
You have a series of Points and want to select a sub-set of Points from the same.
In this method, we will be selecting a set of Points from a series of Points. To make the selected points highlighted, we will make lines from those selected Points. Here Point1 is the set of points & it begins from left to right
If we need to select first few points in a point series, we can do it by using the below expressionPoint1.First(10)
This means, the selected points will be the first 10 points of the series (Point1[0] to Point1[9])
If we need to select last few points in a point series, we can do it by the below expressionPoint1.Last(5) This means the selected points will be last 5 points of the series.
If we need to select in between points in a point series, we can do it by the below expression Point1.First(10).Last(6) This means the selected points will be Point1[4] to Point1[9]. In this expression the starting of the selection of the point will be of point number 9, as 10 is an argument to the list method and the last 6 will be the number of points that will be taken in the set. That means, point 4, point 5, point 6... point 9 will be selected .
Please go through the sample file, https://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-28/Selection-of-Points-by-Range-Indices.gct