Skip to main content

ImportOptions

Parameters

Snapshot of the Import preference values.

Import

import ScriptingApi as api

# Access the class
# ImportOptions is available via api.ImportOptions

Properties

spacing_comparison_decimal_places

Number of decimal places used when comparing image spacing with the active volume.

Higher values enforce stricter matching and are more likely to detect mismatches. Values stay in the valid range from 1 to 15.

Type: int


origin_comparison_decimal_places

Number of decimal places used when comparing image origin with the active volume.

Higher values enforce stricter matching. Small origin differences may arise from numerical precision or reorientation. Values stay in the valid range from 1 to 15.

Type: int


allow_import_of_images_with_mismatched_geometry

Allow importing images even if their geometry does not match the active volume based on the spacing and origin precision settings.

Type: bool


resample_mismatched_images_to_match_the_projects_active_volume

Automatically resample mismatched images to match the active volume's dimensions, origin, and spacing.

Type: bool


import_multi_part_files_as_single_surface_object

Merge all parts in multi-part file formats into a single surface object.

Type: bool


cad_file_import_options

CAD file import preference values. Use api.CadFileImportOptions()

Type: CadFileImportOptions


See Also