Scripting for PointStudio

It is possible to call certain menu options in PointStudio from Python. These menu options are called PointStudio operations within the Maptek SDK. The operations for PointStudio are located in the mapteksdk.pointstudio.operations module.

Here is an example of a script using the some of these operations:

from mapteksdk.project import Project
from mapteksdk.data import Surface
import mapteksdk.pointstudio.operations as pointstudio_operations
with Project() as project:
    surfaces = [
        project.copy_object(selected_object, selected_object.path + '_POST_PROCESS')
        for selected_object in project.get_selected() if selected_object.is_a(Surface)
    ]
    pointstudio_operations.simplify_by_distance_error(surfaces, 20.0)
    pointstudio_operations.despike(surfaces)
    pointstudio_operations.fix_surface(surfaces)