Section Designer — write a section to CIVIL NX
section_writeWrites a section into the open CIVIL NX model exactly as Section Designer's Write button does: VALUE/GEN, PSC/VALU or COMPOSITE-GEN with its computed properties (CIVIL keeps them as sent), in the model's units read at the time of writing, then reads it back and compares every value sent. id defaults to the model's next free section id. Refuses unconverged results. If the id is taken it writes nothing and says by what (and how many elements use it); replacing needs replaceExisting: true — DESTRUCTIVE, only with the user's agreement. Previews unless apply: true with confirmPlanHash. Before applying, show the user the drawing (section_preview) and the properties and get their go-ahead. section_write_undo reverses it. Same section input as section_preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Section id; default = next free id in the model. | |
| apply | No | Write to CIVIL NX. Only after the user approved the preview. | |
| section | Yes | The section, read off the sketch. Axes: y across (positive right), z up, as seen in CIVIL's section dialog; put the origin anywhere convenient (e.g. bottom-left corner or soffit centre) — CIVIL's frame is applied on write. | |
| confirmPlanHash | No | planHash from the approved preview; the write is refused if the plan differs. | |
| replaceExisting | No | DESTRUCTIVE: overwrite the section already at id (elements using it change stiffness). Only with the user's agreement. |