@Bryce Haire
The mentioned information will help with some basic tasks like drawing a line, but it definitely doesn't help with finding out how the whole point cloud database system works, how for instance to import a LAS file with a macro, without any GUI window popping up. How to start a specific classification run with a macro.
Or even simple basics, how exactly the extraction from an existing cloud works, what are those "Integrations", how do those cloud ID's exactly work.
The VS Object Browser shows rather little information when it comes to Pointclouds.
It took me hours to find out the absolute basic retrieval of the on-screen selected cloud points as Point3D's.
selectionSet = GlobalSelection.Items(self.currentProject)
cloudselectionids = []
for o in selectionSet:
if isinstance(o, self.pointcloudType): # self.pointcloudType = clr.GetClrType(PointCloudRegion)
# the cloudids must be the ID's of the single scan stations
# we iterate through the different cloud regions (i.e default, ground, Wall)
# and retrieve the scan station ids which contain data for the currently selected cloud parts
cloudselectionids.Add(o.Integration.GetSelectedCloudId())
# ???? what is Integration within another Integration
# what does that word mean here, havent come across it elsewhere in TBC???
cloudintegration = o.Integration.PointCloudDatabase.Integration
# now get from the database the selected points from each scan station
cps = cloudintegration.GetSelectedPoints(cloudselectionids)
What's the difference between "PointCloudRegion" and "ExposedPointCloudRegion".
Nothing is properly documented, how it's intertwined. I'm nearing my 100th macro now and still haven't figured point clouds out properly. We need a decent documentation as we have for the Access SDK. I'm wasting so much time with trail and fail on how to use everything properly, the reasoning of the person who wrote the code at some point.