Hello,
I have this project now where i need to measure the Z value of points on a floor for every 60 x 60 cm. And well, the area is quite large.
The only way i know to do this is Analysis -> measure point, and do them all manually.
Is there maybe a script to do this? Doesn't seem like a difficult script to make, if you know how to do it, that is.
Thanks,
Script for extracting data from multiple points.
- gilles_3DR
- V.I.P Member
- Posts: 235
- Joined: Mon Dec 08, 2014 11:41 am
- 9
- Full Name: Gilles Monnier
- Company Details: Hexagon
- Company Position Title: 3DR Technical Manager
- Country: France
- Linkedin Profile: Yes
- Has thanked: 2 times
- Been thanked: 28 times
Re: Script for extracting data from multiple points.
Hi Brynjar,
did you have a look at the Grid Projection functionality? (Extract/Cloud menu).
Seems to me like this is what you are looking for!
Or Points on Grid if points need to be extracted on a point cloud!
did you have a look at the Grid Projection functionality? (Extract/Cloud menu).
Seems to me like this is what you are looking for!
Or Points on Grid if points need to be extracted on a point cloud!
-
- I have made 10-20 posts
- Posts: 11
- Joined: Fri Mar 13, 2020 8:09 am
- 4
- Full Name: Sebastian Bjørnstad
- Company Details: PK AS
- Company Position Title: CAD constructor
- Country: Norway
- Linkedin Profile: No
- Has thanked: 12 times
Re: Script for extracting data from multiple points.
Hi Gilles, thanks for your fast reply.
I have actually looked into that. points on grid etc. This have given me this result:
However the measures are all manually placed by clicking on each point (on the first picture). So getting the actuall points i need, I can do.
(This is only a test area, the actual floor is far larger.)
I have actually looked into that. points on grid etc. This have given me this result:
However the measures are all manually placed by clicking on each point (on the first picture). So getting the actuall points i need, I can do.
(This is only a test area, the actual floor is far larger.)
You do not have the required permissions to view the files attached to this post.
- Leandre Robitaille
- V.I.P Member
- Posts: 542
- Joined: Sat Aug 03, 2019 1:53 am
- 4
- Full Name: Leandre Robitaille
- Company Details: Cima+
- Company Position Title: Civil Technician - Surveyor
- Country: Canada
- Has thanked: 61 times
- Been thanked: 246 times
Re: Script for extracting data from multiple points.
Export the area you want as e57 with a decimation at 60cm.
Import the .e57 in cloudcompare.
save it as a .txt
open the txt, the first values of each rows will be X,Y,Z coordinates, separated with a space, you can import that in excel if you want.
Import the .e57 in cloudcompare.
save it as a .txt
open the txt, the first values of each rows will be X,Y,Z coordinates, separated with a space, you can import that in excel if you want.
-
- I have made 30-40 posts
- Posts: 36
- Joined: Thu Dec 20, 2018 5:19 pm
- 5
- Full Name: Daniel Jansson
- Company Details: Teodoliten Mätteknik AB
- Company Position Title: Reality Capture Consultant
- Country: Sweden
- Linkedin Profile: Yes
- Has thanked: 7 times
- Been thanked: 6 times
Re: Script for extracting data from multiple points.
Is this what you want?
1. Run points on grid.
1.b Or Grid Projection and skip step 2.
2. Run distance filter with lower value than points on grid.
3. Show only the new grid points you want labels of.
4. Run script:
1. Run points on grid.
1.b Or Grid Projection and skip step 2.
2. Run distance filter with lower value than points on grid.
3. Show only the new grid points you want labels of.
4. Run script:
Code: Select all
var points = SPoint.All(1);
for(var i = 0; i < points.length; i++) {
var label = SLabel.New(1, 1);
SLabel.SetSizeType(SLabel.MEDIUM);
label.AttachToPoint(points[i]);
label.SetLineType([SLabel.ZZ]);
label.SetColType([SLabel.Measure]);
label.SetCell(0, 0, points[i].GetZ());
label.AddToDoc();
}