1. Part Text Recognition
CloudNest Open Platform API Documentation
  • Preliminary preparation
    • 0. Introduction
    • a. Use our demo to quickly generate request headers
    • b. Manually create the request header
    • 1. API Quota & API Rate Limit
    • 2. Data Dictionary
  • part
    • Generate parts (imported from nc1)
      POST
    • Generate parts (JS template)
      POST
    • Generate parts (DXF file)
      POST
    • Generate parts (SmartDraw)
      POST
    • Retrieve the full list of parts
      POST
    • Retrieve the list of parts on the layout (returned in order of their physical positions)
      POST
    • Copy parts
      POST
    • Update and delete part information
      POST
    • Update the custom properties of a part
      POST
  • plate
    • Retrieve scrap sheet hierarchy details
      GET
    • Add plate
      POST
    • Retrieve plate list
      POST
    • Update plate information
      POST
  • drawing
    • Query drawing information
      POST
    • Upload DXF drawing to the job (upload file).
      POST
    • Upload dxf drawings to the job (active download)
      POST
    • Delete DXF drawing (force delete)
      POST
    • Delete DXF drawing (cannot be deleted if processed or being processed)
      POST
  • material
    • Add Material
    • Get Material List
  • job
    • Query job information by job ID
    • Add Job
    • Get Job List
    • Get Parts List under the Job
    • Get Layout List under the Job
    • Get the formatting details of the assignment
    • Get the production schedule list of the assignment
    • Get the part layout information under the assignment
    • Get the list of plates used in the assignment
    • Get the production task details under the assignment
    • Search the assignment (exact search by assignment name)
    • Delete job
    • Query the drawing processing status under the specified job
    • Get the nesting details under the job (return the DXF download link of the nesting and the part serial numbers)
    • Boost
    • Query job information by job ID (flat view)
    • Delete nesting
  • production
    • Query completed task list for the machine tool
    • Get production task details
    • Server-side - Push the layout to the CNC machine
  • Part Text Recognition
    • Get user-defined text recognition configuration
      GET
    • Drawing processing text recognition configuration
      POST
  • others
    • Get job and material information based on the layout GUID
    • Get the parts list based on the layout GUID
  1. Part Text Recognition

Drawing processing text recognition configuration

POST
https://mcs-gateway.fscut.com/cn-api/api/user/pos_config/update
Drawing processing text recognition configuration: The recognized fields will be stored as custom fields for the parts.
It's important to note the escape of characters.
prefix_reg and suffix_reg should be treated as string recognition patterns.
One of prefix_reg or suffix_reg will be an empty string, and the other will not.

参数说明#

{
    "pos_id": 10,  // ID of the existing rule to delete
    "type": 1,  // 0 - Basic information, 1 - Extended attributes
    "pos": "orderCode",  // Content to be recognized (e.g., 'orderCode')
    "prefix_reg": "O_",  // Prefix for the recognized content (not used in deletion but shown in the original rule)
    "content_reg": "\\d{8}-\\d{4}",  // Regular expression for the recognized content (not used in deletion but shown in the original rule)
    "suffix_reg": "",  // Suffix (not used in deletion but shown in the original rule)
    "alias": "0_8-digit number - 4-digit number",  // Alias displayed in the software (not used in deletion but shown in the original rule)
    "is_delete": 1  // 1 means this rule is marked for deletion
}


// ADD
// {
//     "type": 1,
//     "pos": "orderCode",
//     "prefix_reg": "O_",
//     "content_reg": "\\d{8}-\\d{4}",
//     "suffix_reg": "",
//     "alias": "0_8-digit number - 4-digit number"
// }

// UPDATE
// {
//     "pos_id": 10,
//     "prefix_reg": "O_",
//     "content_reg": "\\d{8}-\\d{4}",
//     "suffix_reg": "",
//     "alias": "0_8-digit number - 4-digit number"
// }

// DELETE
// {
//     "pos_id": 10,
//     "is_delete": 1
// }

Request

Authorization
Header Params

Body Params application/json

Example
{
    "type": 0,
    "pos": "string",
    "prefix_reg": "string",
    "content_reg": "string",
    "suffix_reg": "string",
    "alias": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://mcs-gateway.fscut.com/cn-api/api/user/pos_config/update' \
--header 'appId: op191eb50f9b81873c' \
--header 'appSecret: appSecret' \
--header 'timestamp: 1743497261540' \
--header 'appSign: 13622d51e3e4f4935c8ba27728ed309f' \
--header 'X-FS-Orgcode: TEAM001' \
--header 'Content-Type: application/json' \
--data '{
    "type": 0,
    "pos": "string",
    "prefix_reg": "string",
    "content_reg": "string",
    "suffix_reg": "string",
    "alias": "string"
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "status": 0,
    "msg": "OK",
    "data": {
        "pos_id": 237
    }
}
Modified at 2025-04-01 09:41:41
Previous
Get user-defined text recognition configuration
Next
Get job and material information based on the layout GUID
Built with