DICOM Medical Image .DIC, .DCM, .AN1, .AN2 Import Automation Options

 

When the program is driven from an automation script, an options string can be specified in the script that acts as the import options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various import options.

 

Parameter

Type

Description

Filter

string

DICOM

AutoContrast

1 or 0

Detect and set appropriate contrasts to try and improve visibility of a dic image.

0 does not use Voxler's autocontrast feature. 1 does.

 

Example

This example shows how to import a DIC file with the various options.

 

CommandApi.Construct("Import")

  CommandApi.Option("GuiEnabled", "False")

  CommandApi.Option("ProgressEnabled", "False")

  CommandApi.Option("UndoRedoEnabled", "True")

  CommandApi.Option("AutoConnect", "True")

  CommandApi.Option("ClearOptions", "False")

  CommandApi.Option("Filter", "dicom")

  CommandApi.Option("Options", "AutoContrast=1")

  CommandApi.Option("Path", "C:/Path/To/Import/file.dic")

  CommandApi.Option("PersistOptions", "True")

CommandApi.Do()

 

Example

This example shows how to import a DCM file with the various options.

 

CommandApi.Construct("Import")

  CommandApi.Option("GuiEnabled", "False")

  CommandApi.Option("ProgressEnabled", "False")

  CommandApi.Option("UndoRedoEnabled", "True")

  CommandApi.Option("AutoConnect", "True")

  CommandApi.Option("ClearOptions", "False")

  CommandApi.Option("Filter", "dicom")

  CommandApi.Option("Options", "AutoContrast=1")

  CommandApi.Option("Path", "C:/Path/To/Import/file.dcm")

  CommandApi.Option("PersistOptions", "True")

CommandApi.Do()

 

Used by: Import

 

 

See Also

Automation Model