write_records
Create or update up to 50 records in a MIDAS NX /db or /DESIGN table using preview then apply, with reference validation and actual-change readback.
Instructions
Create or update records in one /db or /DESIGN table. Two steps: preview, then apply.
records: {id: fields}, e.g. {"13": {"X": 0, "Y": 0, "Z": 6.4}} for NODE; see describe_table for the fields (or read_table, for /DESIGN). "create" refuses ids that exist, "update" ids that do not, except record "1" of the one-record /DESIGN tables DCO, DCTL, LLRF, LMRR and SRDF, which have no create and are made by their first update. At most 50 records. After applying, the table is read back and what actually changed is returned; some tables store a new record under an id of their own choosing, so trust "added", not the ids you sent; the preview says when a table is known to do that. A record naming one that does not exist (an element's material, section, thickness or nodes, a load's load case or group, ...) is refused: NX would refuse it, store it pointing at nothing, or drop the value (midas-nx plan.validate). Any write discards the analysis results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| table | Yes | ||
| product | Yes | ||
| records | Yes | ||
| confirm_token | No |