Atlas Boundary [.BNA] Import Automation Options

 

Since the Import Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various import options.

 

Parameter

Type

Description

Filter

string

BNA

AreasToCurves

0 or 1

If set to 1, area objects are converted to closed curves.

 

 

Example 1

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

 

CommandApi.Construct("Import")

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

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

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

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

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

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

  CommandApi.Option("Options", "AreasToCurves=0")

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

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

CommandApi.Do()

 

 

See Also

Atlas Boundary [.BNA] File Description

Atlas Boundary [.BNA] Export Automation Options