Tekla.Structures.Model.PointCloudDataServices Namespace

The Tekla.Structures.Model.PointCloudDataServices namespace contains classes and methods that enable fetching information of point clouds in Trimble Connect projects.
Classes
  ClassDescription
Public classCode examplePointCloudDataServices
The point cloud data services.
Examples
The following example shows how to use the PointCloudDataServices class to retrieve point cloud data in Trimble Connect projects and attach it to a model.
using System.Threading;
using Tekla.Structures.Model;

public class Example
{
    public async void Example1()
    {
        var projects = await PointCloudDataServices.GetProjectsWithPointCloudsAsync();
        var pointClouds = projects.First().PointClouds;
        var url = await PointCloudDataServices.GetPointCloudUrlAsync(projects.First(), pointClouds.First());

        PointCloud pointCloud = new PointCloud
        {
            Name = pointClouds.First().Name,
            Url = url,
            TcProjectId = projects.First().Id,
            TcPointCloudGuid = pointClouds.First().Id,
            LocationBy = Guid.Empty,
            UseAutoCreatedBasePoint = true,
            Scale = 1.0
        };

        pointCloud.Attach();
    }
}
Structures
  StructureDescription
Public structureCode exampleTCPointCloud
Represents a point cloud in Trimble Connect project with metadata such as ID, name, file size, point count, and uploader information.
Public structureCode exampleTCProject
Represents a Trimble Connect Project tenancy with point cloud data services.
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next