Command Line Interface
Installation and Setup
Before you can use the Build Processor, you need to install it. Follow these steps:
Locate the Build Processor installation package.
Install the Build Processor according to your system’s installation instructions.
After installation, the executable can be found at the following path:
C:\ProgramData\Materialise\BuildProcessors\Packages\BP_Nikon_SLM-X-X-X\Driver\Pipeline\BP_Nikon_SLM_X.X.X.exe
Replace
X-X-XandX.X.Xwith the version of the Build Processor (e.g.,1.1.5).
Command Line Usage
The Build Processor provides several command-line operations for processing builds, generating parameter files, and exporting data.
General Syntax
BP_Nikon_SLM_X.X.X.exe <command> [options]
Available Commands
process
Run the build processor to slice and prepare a build file.
Usage:
BP_Nikon_SLM_X.X.X.exe process -i <input_file> -o <output_folder> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Input file to preprocess (matamx or 3mf) |
Yes |
|
Output folder for processed files |
Yes |
|
Input parameters file (JSON) |
No |
|
Job name (overrides parameters file) |
No |
|
Create timestamped subfolder in output |
No |
|
Path to machine specification JSON file |
No |
|
Export parameters to output folder |
No |
|
Log memory/CPU usage and create diagnostics |
No |
Example:
BP_Nikon_SLM_X.X.X.exe process -i platform.matamx -o ./output -p parameters.json --resource-monitor
generate
Generate various model files and default parameters.
Usage:
BP_Nikon_SLM_X.X.X.exe generate <target>
Available Targets:
defaults- Generate default parameters (compact JSON)defaults-pretty- Generate default parameters (formatted JSON)parameter-model- Generate parameter model schemaui-model- Generate UI modelpipeline-model- Generate pipeline modelmigration-model- Generate migration modelmachine-spec- Generate machine specificationmachine-models- Generate machine modelsid-txt- Generate BP identification file
Example:
BP_Nikon_SLM_X.X.X.exe generate defaults-pretty > default_parameters.json
generate-models
Generate all model files to a specified directory.
Usage:
BP_Nikon_SLM_X.X.X.exe generate-models <output_dir> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Output folder for generated models |
Yes |
|
Images folder (can be specified multiple times) |
No |
|
Language folder for localized strings |
No |
Example:
BP_Nikon_SLM_X.X.X.exe generate-models ./models --images-dir ./images --lang-dir ./lang
export-part-guids
Export part GUIDs from a matamx or 3mf file for use in parameter overrides.
Usage:
BP_Nikon_SLM_X.X.X.exe export-part-guids -i <input_file> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Path to input file (matamx or 3mf) |
Yes |
|
Output path for part GUIDs (JSON or CSV) |
No |
|
Platform index (default: 0) |
No |
|
Output format: |
No |
Examples:
# Print to console as JSON
BP_Nikon_SLM_X.X.X.exe export-part-guids -i platform.matamx
# Print to console as CSV
BP_Nikon_SLM_X.X.X.exe export-part-guids -i platform.3mf --format csv
# Save to file
BP_Nikon_SLM_X.X.X.exe export-part-guids -i platform.matamx --output parts.json
Output Format:
The command exports part information with the following fields:
part_name- The name of the part instancepart_guid- The globally unique identifier (lowercase) for use in parameter overridesplatform_index- The platform index the part belongs to
generate-doe-parameters
Create a parameters.json file with part overrides from a CSV file for Design of Experiments (DOE).
Usage:
BP_Nikon_SLM_X.X.X.exe generate-doe-parameters --base-parameters <file> --csv <file> --matamx <file> --output <file> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Path to base parameters.json file |
Yes |
|
Path to CSV file with part overrides |
Yes |
|
Path to matamx file to extract part GUIDs |
Yes |
|
Output path for new parameters.json |
Yes |
|
Platform index (default: 0) |
No |
Example:
BP_Nikon_SLM_X.X.X.exe generate-doe-parameters --base-parameters base.json --csv overrides.csv --matamx platform.matamx --output final_params.json
export-doe-csv-template
Export a template CSV file for part overrides in Design of Experiments.
Usage:
BP_Nikon_SLM_X.X.X.exe export-doe-csv-template --output <file> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Output path for template CSV |
Yes |
|
Include all available fields in template |
No |
|
Path to matamx file to populate part names |
No |
Example:
BP_Nikon_SLM_X.X.X.exe export-doe-csv-template --output template.csv --matamx platform.matamx
migration
Migrate parameters from older profile formats to the current format.
Usage:
BP_Nikon_SLM_X.X.X.exe migration --input-file <file> --media-type <type> --output-file <file> [options]
Arguments:
Argument |
Description |
Required |
|---|---|---|
|
Input file to migrate |
Yes |
|
Media type of input file |
Yes |
|
Output file path |
Yes |
|
Language of the input file |
No |
|
Machine model identifier |
No |
|
Path to machine specification JSON file |
No |
Supported Media Types:
application/vnd.mtls.machine-manager.profiles+json- Machine Manager profilesapplication/vnd.mtls.bp.profiles- Build Processor profiles
Example:
BP_Nikon_SLM_X.X.X.exe migration --input-file old_profile.bpprof --media-type application/vnd.mtls.bp.profiles --output-file new_params.json
generate-docs
Generate documentation in reStructuredText format.
Usage:
BP_Nikon_SLM_X.X.X.exe generate-docs -o <output_dir>
Example:
BP_Nikon_SLM_X.X.X.exe generate-docs -o ./documentation
generate-ui-csv
Generate UI settings documentation in CSV format.
Usage:
BP_Nikon_SLM_X.X.X.exe generate-ui-csv -o <output_file>
Example:
BP_Nikon_SLM_X.X.X.exe generate-ui-csv -o ui_settings.csv
generate-localization
Generate localization files for internationalization.
Usage:
BP_Nikon_SLM_X.X.X.exe generate-localization -o <output_dir>
Example:
BP_Nikon_SLM_X.X.X.exe generate-localization -o ./localization
Working with Part Overrides
Part overrides allow you to specify different parameter values for individual parts in a build. To use part overrides effectively:
Extract Part GUIDs: Use the
export-part-guidscommand to identify the GUIDs of parts in your build file.Create Override CSV: Use the
export-doe-csv-templatecommand to generate a template CSV file.Edit CSV: Fill in the CSV with your desired parameter overrides for each part.
Generate Parameters: Use the
generate-doe-parameterscommand to create a complete parameters.json file with your overrides.Process Build: Use the
processcommand with your new parameters file.
Example Workflow:
# Step 1: Export part GUIDs
BP_Nikon_SLM_X.X.X.exe export-part-guids -i platform.matamx --output parts.json
# Step 2: Create CSV template
BP_Nikon_SLM_X.X.X.exe export-doe-csv-template --output template.csv --matamx platform.matamx
# Step 3: Edit template.csv with your overrides (use Excel, text editor, etc.)
# Step 4: Generate final parameters
BP_Nikon_SLM_X.X.X.exe generate-doe-parameters --base-parameters base_params.json --csv template.csv --matamx platform.matamx --output final_params.json
# Step 5: Process the build
BP_Nikon_SLM_X.X.X.exe process -i platform.matamx -o ./output -p final_params.json
Tips and Best Practices
Always verify your output directory is empty or use
--sub-folderto create timestamped directories.Use
--resource-monitorto track performance and diagnose issues with large builds.Keep your parameters files version controlled to track changes over time.
Use the
export-part-guidscommand to verify part GUIDs before setting up overrides.Test parameter changes on small builds before running large production builds.
Troubleshooting
- Output directory not empty
The process command requires an empty output directory. Either clear the directory or use the
--sub-folderoption.- Invalid part GUID
Use the
export-part-guidscommand to verify the correct GUIDs for your parts. GUIDs are case-insensitive and should be in lowercase format.- Migration failed
Ensure you’re using the correct media type for your input file. Check the file format and try using the appropriate media type string.
- Parameters file validation error
Use
generate defaults-prettyto see the expected parameter structure and compare with your parameters file.