bsExportFilter

Module: bsExportFilter

Interface for the declaration of export filters. The export filters describe the implemented file formats which are available to the main application. The main application could offer to the user a list of available file formats for export.

Integer nExportFilterSingleFile

flag option - single file.

Integer nExportFilterMultifile

flag option - multiple files.

bsExportFilter.declareFilter(sFilterId, sFilterName, sFilterExtension, nVersionMajor, nVersionMinor, nFlags)

Declares an export filter. It is important that sFilterId is unique so that the corresponding method can be called inside the export function. The combination of the major and minor version numbers describe the version number of the file format. For example major version “1” and minor version “5” is interpreted as version “1.5”.

Arguments:

bsExportFilter.declareFilterEx(formatObj)

Declares an export filter. The argument object has to contains all attributes shown in the example below except the entries ‘sSchema’ and ‘custom’ which are optional.

var formatObj = {
  "sFilterId" : "CLI-BFD4ACD4-0E2E-4A1D-8B24-095D3AA011D0",
  "sFilterName" : "Common Layer Interface",
  "sFilterExtension" : "cli",
  "nVersionMajor" : 2,
  "nVersionMinor" : 0,
  "isMultifile" : false,
  "sSchema" : "com.autodesk.powderbed-1.0.0",
  "custom" : {}
};

The format object is allowed to contain any additional custom information. ATU will ignore custom values but they will be available to the host application which is reading out the export filter attributes from an ebpa module.

The combination of the major and minor version numbers describe the version number of the file format. For example major version “1” and minor version “5” is interpreted as version “1.5”.

Arguments: