Skip to main content

AnalysisOperations

Operations

Provides tools for creating, running, and managing analysis objects. Supports wall thickness, deviation, curvature, extrema, gray value, and void/inclusion analyses on mask and surface objects. Enables programmatic access to analysis results and statistics.

Import

import ScriptingApi as api

# Access via Application
app = api.Application()
ops = app.get_analysis_operations()

Methods

Creation

create_wall_thickness_analysis_mask

Creates a wall thickness analysis on a mask object.

Signature:

create_wall_thickness_analysis_mask(analysisName: str, maskName: str, params: WallThicknessParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
maskNameanyName of the mask object to analyze.
paramsanyWall thickness analysis parameters. Use api.WallThicknessParams().

Returns: str — The name of the created analysis object.


create_wall_thickness_analysis_surface

Creates a wall thickness analysis on a surface object.

Signature:

create_wall_thickness_analysis_surface(analysisName: str, surfaceName: str, params: WallThicknessParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
surfaceNameanyName of the surface object to analyze.
paramsanyWall thickness analysis parameters. Use api.WallThicknessParams().

Returns: str — The name of the created analysis object.


create_deviation_analysis_mask_vs_mask

Creates a deviation analysis comparing two mask objects.

Signature:

create_deviation_analysis_mask_vs_mask(analysisName: str, actualMaskName: str, referenceMaskName: str, params: DeviationParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
actualMaskNameanyName of the actual (measured) mask object.
referenceMaskNameanyName of the reference (nominal) mask object.
paramsanyDeviation analysis parameters. Use api.DeviationParams().

Returns: str — The name of the created analysis object.


create_deviation_analysis_surface_vs_surface

Creates a deviation analysis comparing two surface objects.

Signature:

create_deviation_analysis_surface_vs_surface(analysisName: str, actualSurfaceName: str, referenceSurfaceName: str, params: DeviationParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
actualSurfaceNameanyName of the actual (measured) surface object.
referenceSurfaceNameanyName of the reference (nominal) surface object.
paramsanyDeviation analysis parameters. Use api.DeviationParams().

Returns: str — The name of the created analysis object.


create_deviation_analysis_mask_vs_surface

Creates a deviation analysis comparing a mask to a surface object.

Signature:

create_deviation_analysis_mask_vs_surface(analysisName: str, actualMaskName: str, referenceSurfaceName: str, params: DeviationParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
actualMaskNameanyName of the actual (measured) mask object.
referenceSurfaceNameanyName of the reference (nominal) surface object.
paramsanyDeviation analysis parameters. Use api.DeviationParams().

Returns: str — The name of the created analysis object.


create_curvature_analysis_mask

Creates a curvature analysis on a mask object.

Signature:

create_curvature_analysis_mask(analysisName: str, maskName: str, params: CurvatureParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
maskNameanyName of the mask object to analyze.
paramsanyCurvature analysis parameters. Use api.CurvatureParams().

Returns: str — The name of the created analysis object.


create_curvature_analysis_surface

Creates a curvature analysis on a surface object.

Signature:

create_curvature_analysis_surface(analysisName: str, surfaceName: str, params: CurvatureParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
surfaceNameanyName of the surface object to analyze.
paramsanyCurvature analysis parameters. Use api.CurvatureParams().

Returns: str — The name of the created analysis object.


create_extrema_analysis_mask

Creates an extrema analysis on a mask object.

Signature:

create_extrema_analysis_mask(analysisName: str, maskName: str, params: ExtremaParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
maskNameanyName of the mask object to analyze.
paramsanyExtrema analysis parameters. Use api.ExtremaParams().

Returns: str — The name of the created analysis object.


create_extrema_analysis_surface

Creates an extrema analysis on a surface object.

Signature:

create_extrema_analysis_surface(analysisName: str, surfaceName: str, params: ExtremaParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
surfaceNameanyName of the surface object to analyze.
paramsanyExtrema analysis parameters. Use api.ExtremaParams().

Returns: str — The name of the created analysis object.


create_gray_value_analysis_mask

Creates a gray value analysis on a mask object.

Signature:

create_gray_value_analysis_mask(analysisName: str, maskName: str, volumeName: str, params: GrayValueParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
maskNameanyName of the mask object to analyze.
volumeNameanyName of the volume object providing gray values.
paramsanyGray value analysis parameters. Use api.GrayValueParams().

Returns: str — The name of the created analysis object.


create_gray_value_analysis_surface

Creates a gray value analysis on a surface object.

Signature:

create_gray_value_analysis_surface(analysisName: str, surfaceName: str, volumeName: str, params: GrayValueParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
surfaceNameanyName of the surface object to analyze.
volumeNameanyName of the volume object providing gray values.
paramsanyGray value analysis parameters. Use api.GrayValueParams().

Returns: str — The name of the created analysis object.


create_void_inclusion_analysis

Creates a void/inclusion analysis on a volume object.

Signature:

create_void_inclusion_analysis(analysisName: str, volumeName: str, roiMaskName: str, params: VoidInclusionParams) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName for the new analysis object. If empty, a name is auto-generated.
volumeNameanyName of the volume object to analyze.
roiMaskNameanyOptional ROI mask name to restrict analysis region. Pass empty string if not used.
paramsanyVoid/inclusion analysis parameters. Use api.VoidInclusionParams().

Returns: str — The name of the created analysis object.


Properties

run_analysis

Runs the specified analysis and computes results.

Signature:

run_analysis(analysisName: str) -> bool

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object to run.

Returns: bool — True if the analysis completed successfully.


update_analysis

Updates the visualization of an existing analysis.

Signature:

update_analysis(analysisName: str) -> None

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object to update.

get_analysis_info

Gets information about an analysis object.

Signature:

get_analysis_info(analysisName: str) -> AnalysisInfo

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: AnalysisInfo — Analysis information structure as a AnalysisInfo structure.


get_analysis_type

Gets the type of an analysis object.

Signature:

get_analysis_type(analysisName: str) -> AnalysisType

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: AnalysisType — The analysis type as a api.AnalysisType enum value.


get_analysis_type_as_string

Gets the type of an analysis object as a string.

Signature:

get_analysis_type_as_string(analysisName: str) -> str

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: str — The analysis type as a string.


has_analysis_results

Checks if an analysis has computed results.

Signature:

has_analysis_results(analysisName: str) -> bool

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: bool — True if the analysis has results available.


get_wall_thickness_analysis_results

Gets detailed results for a wall thickness analysis (mask or surface based).

Signature:

get_wall_thickness_analysis_results(analysisName: str) -> WallThicknessAnalysisResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: WallThicknessAnalysisResults — Wall thickness analysis results as a WallThicknessAnalysisResults structure which includes statistics and raw samples.


get_deviation_analysis_results

Gets detailed results for a deviation analysis (mask vs mask, surface vs surface, mask vs surface).

Signature:

get_deviation_analysis_results(analysisName: str) -> DeviationAnalysisResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: DeviationAnalysisResults — Deviation analysis results as a DeviationAnalysisResults structure which includes statistics and raw samples.


get_curvature_analysis_results

Gets detailed results for a curvature analysis (mask or surface based).

Signature:

get_curvature_analysis_results(analysisName: str) -> CurvatureAnalysisResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: CurvatureAnalysisResults — Curvature analysis results as a CurvatureAnalysisResults structure which includes statistics and raw samples.


get_extrema_analysis_results

Gets detailed results for an extrema analysis (mask or surface based).

Signature:

get_extrema_analysis_results(analysisName: str) -> ExtremaAnalysisResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: ExtremaAnalysisResults — Extrema analysis results as an ExtremaAnalysisResults structure which includes statistics and raw samples.


get_gray_value_analysis_results

Gets detailed results for a gray value analysis (mask or surface based).

Signature:

get_gray_value_analysis_results(analysisName: str) -> GrayValueAnalysisResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: GrayValueAnalysisResults — Gray value analysis results as a GrayValueAnalysisResults structure which includes statistics and raw samples.


get_void_inclusion_results

Gets results from a void/inclusion analysis.

Signature:

get_void_inclusion_results(analysisName: str) -> VoidInclusionResults

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: VoidInclusionResults — Void/inclusion analysis results as a VoidInclusionResults structure.


restore_visualizations

Restores the visualizations in 2D/3D views for a given analysis. This clears the analysis visualization including color mapping and preview geometry,

Signature:

restore_visualizations(analysisName: str) -> None

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

write_wall_thickness_results_to_disk

Writes wall thickness analysis results to disk in a human-readable text format.

Signature:

write_wall_thickness_results_to_disk(results: WallThicknessAnalysisResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed wall thickness results WallThicknessAnalysisResults to write.
filePathanyDestination file path.

write_deviation_results_to_disk

Writes deviation analysis results to disk in a human-readable text format.

Signature:

write_deviation_results_to_disk(results: DeviationAnalysisResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed deviation results DeviationAnalysisResults to write.
filePathanyDestination file path.

write_curvature_results_to_disk

Writes curvature analysis results to disk in a human-readable text format.

Signature:

write_curvature_results_to_disk(results: CurvatureAnalysisResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed curvature results CurvatureAnalysisResults to write.
filePathanyDestination file path.

write_extrema_results_to_disk

Writes extrema analysis results to disk in a human-readable text format.

Signature:

write_extrema_results_to_disk(results: ExtremaAnalysisResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed extrema results ExtremaAnalysisResults to write.
filePathanyDestination file path.

write_gray_value_results_to_disk

Writes gray value analysis results to disk in a human-readable text format.

Signature:

write_gray_value_results_to_disk(results: GrayValueAnalysisResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed gray value results GrayValueAnalysisResults to write.
filePathanyDestination file path.

write_void_inclusion_results_to_disk

Writes void/inclusion analysis results to disk in a human-readable text format.

Signature:

write_void_inclusion_results_to_disk(results: VoidInclusionResults, filePath: str) -> None

Parameters:

ParameterTypeDescription
resultsanyPreviously computed void/inclusion results VoidInclusionResults to write.
filePathanyDestination file path.

UI

set_display_settings

Sets the display settings for an analysis.

Signature:

set_display_settings(analysisName: str, settings: AnalysisDisplaySettings) -> None

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.
settingsanyDisplay settings structure.

get_display_settings

Gets the current display settings for an analysis.

Signature:

get_display_settings(analysisName: str) -> AnalysisDisplaySettings

Parameters:

ParameterTypeDescription
analysisNameanyName of the analysis object.

Returns: AnalysisDisplaySettings — Current display settings as an AnalysisDisplaySettings structure.


See Also