|
|
This page explains how to integrate CAD-AI Web APIs into client applications. It covers authentication, prediction API usage, request/response formats, and common troubleshooting steps.
Integration is a two-step process:
Before starting the integration, ensure you have the following items:
A valid CAD-AI API Key provided by the Cimatron team
Internet connectivity to access CAD-AI services
Ability to make HTTPS POST requests (using tools like Postman, cURL, or code via REST client libraries)
Input CAD file ready for AI prediction
This process works for STEP and SAT
Use the API key provided by Cimatron to generate an authentication token.
Note: Keep the API key secure. Do not expose it in public repositories or client-side code.
URL - https://cimatronauthapi.cimatron.com/api/Auth/generateAuthToken
HTTP Method - POST
Header - Content-Type: application/json
Request Payload
{
"apiKey": "[ADD API KEY HERE]"
}
On successful authentication, the API returns a token.
Example Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Use this as a Bearer Token for subsequent API calls.
Note: Generated Bearer Token will expire in 5 mins
The API returns AI-based feature recognition results.
Typical response includes:
Response structure may evolve based on CAD-AI model updates.
{
"probabilities":
{
FaceID :
{
FeatureLabel : Confidence value
}
},
"face_labels":
{
FaceID : FeatureLabel
},
"label_list": [ FeatureLabelSequence ],
"face_groups":
{
FeatureLabel :
{
GroupIndex : [FaceIDs]
}
},
"face_type":
{
FaceID : FaceTypeIndex
}
}
Face Type Labels:
0 – Undefined
1 – Wall
2 – Floor
3 – Feature Fillet
|