Follow

Command Line Integration with MaxCut

MaxCut offers a straightforward Command-Line Interface (CLI), introduced on 15th April 2024 (version 2.9.2.0), that allows users to optimize their cutting plans and manage files through simple, scriptable commands.

The CLI offers several benefits for professionals who want to:

  • Automate repetitive tasks: By scripting commands, you can streamline file imports, optimizations, and exports without needing to manually open MaxCut.
  • Integrate with other software: Use MaxCut as part of a larger workflow, calling MaxCut functions from other tools or services.
  • Efficiently manage licenses: Activate or deactivate licenses without needing to navigate through the user interface.

In this article, we'll walk you through how to get started with MaxCut’s command-line capabilities and explain some key commands.

Key Commands and Options

Here’s an overview of some essential commands and options you’ll use when working with MaxCut from the command line:

General Usage

MaxCut.exe [command] [options] [arguments]

At any time, you can run MaxCut.exe --help to bring up a help message that lists all available commands and options.

1. Importing Files

The import command is used to import a job file into MaxCut. You can specify the format of the file and even choose to optimize the job as part of the process.

  • Options:

    Long-Form Short-Form Description
    --file -f Specify the path of the file you want to import
    --format -ft Specify the format of the file (e.g., cabmaster, kdmax)
    --optimize -o Automatically optimize the job after importing
  • Example:

MaxCut.exe import --format "cabmaster" --file "C:\path\to\file.csv" --optimize

2. Opening Job Files

The open command is used to open and optionally optimize an existing MaxCut job file.

  • Options:

    Long-Form Short-Form Description
    --file -f The job file to open
    --optimize -o Optimize the job file upon opening MaxCut
  • Example:

MaxCut.exe open --file "C:\path\to\file.mc3" --optimize

3. Managing Licenses

MaxCut also allows you to manage license activation and details from the command line, offering more flexibility, particularly for administrators managing multiple machines.

  • Options:

    Long-Form Short-Form Description
    --activate -ac Activate a license using a provided license code
    --deactivate -de Deactivate the current license
    --details -dt Display the currently license details
    --clear -cl

    Clear the license from the machine

  • Example:

MaxCut.exe license --activate "license-code"

 

Global Options

MaxCut’s CLI also includes a set of global options that can be used with any command:

Long-Form Short-Form Description
--help -h Display the help message
--version -v Display the version of MaxCut

 

By integrating MaxCut with your command-line workflows, you can unlock new efficiencies and scale your operations. Whether you're looking to automate tasks or manage your license with greater flexibility, the MaxCut CLI provides the tools to do it seamlessly.

For more detailed information on each command and further examples, you can always run MaxCut.exe --help to view the full range of capabilities.

Try it now!

 

0 Comments

Article is closed for comments.