Golden Software BLN File Format .BLN Export Automation Options

 

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

 

Parameter

Type

Description

Filter

string

BLN

ModuleID

integer

Numeric ID of the module to be exported.

 

0=entire viewer window

2=default

BreakApartCompoundAreas

0 = No

1 = Yes

Compound areas (multi-ring polygons) will be split apart into multiple non-compound areas (simple polygons) during export.

WriteZ

0 = No

1 = Yes

Z values (elevation) will be included in the .BLN file. When Z values are not available for an object, 0 will be written in the Z column.

BlankMode

0 = Blank outside

1 = Blank inside

A value of 0 sets the blanking flag to 0, and regions outside the areas are blanked. A value of 1 sets the blanking flag to 1, and regions inside the areas are blanked.

 

Example

This example shows how to export an BLN file with the various options.

 

CommandApi.Construct("Export")

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

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

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

CommandApi.Option("Options", "BreakApartCompoundAreas=0;WriteZ=1;BlankMode=0")

CommandApi.Option("Path", "C:/Path/To/Export/file.bln")

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

CommandApi.Option("ModuleId", "2")

CommandApi.Do()

 

Used by: Export

 

 

See Also

Automation Model