Project Handling Commands¶
create_project¶
Sentio Version: 2.8.1
Description: Creates a new project. If a project with the same name already exists, it is overwritten.
Parameters:
| Parameter | Type |
|---|---|
| Directory Path\Project Folder | String |
Response:
| Field | Type |
|---|---|
| Directory Path\Project Folder\ProjectFile.trex | String |
Examples:
Command: create_project C:\Users\Project1
Response: 0,0,C:\Users\Project1\Project1.trex
Command: create_project Project1
Response: 0,0,Default project directory\Project1\Project1.trex
Command: create_project MyFolder\Project1
Response: 0,0,Default project directory\MyFolder\Project1\Project1.trex
Remarks: Path conventions:
- If only a name is given, the default project directory (C:\ProgramData\MPI Corporation\Sentio\projects) is used as the parent folder; a subfolder with the project name is created there.
- If the parameter contains a drive letter (e.g. C:/), it is an absolute path, whose last element names the project folder to create (no trailing /).
- The parameter string may not contain characters invalid for path names.
get_project¶
Sentio Version: 2.8.1
Description: Retrieves information about the current project.
Parameters:
| Parameter | Type | Values |
|---|---|---|
| Information to Retrieve | String | Name, FullPath |
Response:
| Field | Type |
|---|---|
| Project name or Full Path | String |
Remarks: If no project is loaded, result 12 (InvalidOperation) and response "No project loaded" are returned.
open_project¶
Sentio Version: 2.8.1
Description: Opens a project.
Parameters:
| Parameter | Type | Values |
|---|---|---|
| Directory Path\Project Folder\Filename | String | — |
| Restore Position Data (opt.) | String | False, True (default) |
Response:
| Field | Type |
|---|---|
| Directory Path\Project Folder\Filename | String |
Remarks: Same path conventions as create_project. If RestorePositionData is False, contact height information, home position, and alignment marker positions are not restored from the project file.
save_project¶
Sentio Version: 2.8.1
Description: Saves a project.
Parameters:
| Parameter | Type |
|---|---|
| Directory path\Project folder (opt.) | String |
Response:
| Field | Type |
|---|---|
| Directory path\Project folder\ProjectFile.trex | String |
Remarks: Same path conventions as create_project. If no parameter is submitted, the project is saved to the current path; if no project is loaded, the command fails when no parameter is submitted.