Export function (automation interface)
Syntax:
Export("<folder>")
Where:
<folder> is a string that specifies the folder to which you want to export the Model or Package.
This function acts on a Model (Project) or Package. It creates in the specified folder, an MDF file for a Model, or a PKF file for a Package. PKF files are created for descendent Packages of the Model or Package.
When using this function, you may want to interrogate the Permissions and Protected attributes, and then set the Protected property accordingly.
If you want to exclude exporting sub-packages or export from a protected Model or Package, see the ExportEx function in the related topics.
Examples
This example exports Package1 to the C:\Exported Packages folder.
Set objPackage = Dictionary.Item("Package", "Package1")
Call objPackage.Export("C:\Exported Packages")
Was this helpful?