This functionality is only available for certain module packages.

You are here: Reference > Commands > Engineering.ZipFileCommand

Engineering.ZipFileCommand

Packs single files or a folder into a ZIP file.

Argument Type Description
contextObject Object Only necessary, if a name of a relative paths is specified for targetName. Mechatronic component, root object or project to identify the project folder in the workspace. The generated ZIP file is stored in the project directory.
sourceFileOrFolderName String Name of the file or folder, which should be packed. The file or folder must be located in the workspace, otherwise an absolute name can be specified. If a folder is specified the folder itself and its complete content is involved (recursive). If a folder is specified with trailing backslash, only the complete content of the folder is involved (recursive).
targetFileName String Name of the generated ZIP file.
If a name or a relative path is specified, the generated ZIP file is stored in the project directory. Therefore the specification of contextObject is necessary.
If an absolute path is specified, the specification of contextObject is not necessary. The file extension must not be defined.