Overview
Parse an existing Mathcad Prime (.mcdx) document to extract its structure, elements, and metadata as JSON. Use this to analyze, validate, or migrate existing calculations.Asynchronous Operation: Returns immediately with a job ID. Poll for the parsed structure.
Authentication
Bearer token (API key from app.stru.ai)
Request Body
Must be
"read_document"Base64-encoded .mcdx file content
Response Structure
When complete, returns the parsed document structure:Example Request
Example Response
Use Cases
Calculation Validation
Calculation Validation
Parse existing calculations to verify formulas, check variables, and validate against standards.
Migration to New Format
Migration to New Format
Extract calculations from legacy documents and recreate in a standardized format.
Bulk Analysis
Bulk Analysis
Parse multiple calculations to extract data for reporting or comparison.
Template Extraction
Template Extraction
Parse a well-formatted calculation to extract its structure as a reusable template.
Best Practices
Validate parsed data - Always check that the parsed structure matches expectations before using it
Handle missing metadata - Not all documents have complete metadata; use defaults when needed
Check element types - Verify element types before accessing type-specific fields
Use the parsed structure to create standardized versions of legacy calculations or to build a searchable database of your calculation library.
Limitations
Complex formatting: Some advanced Mathcad formatting (custom regions, complex layouts) may be simplified during parsing.
Embedded objects: Some embedded objects (OLE, custom components) may not be fully extracted.
Next Steps
After parsing, you can:- Validate the extracted structure
- Use elements to create new standardized documents
- Extract data for reporting or analysis
- Identify which calculations need updates