Preview a load assignment.
Prepare a bounded proposed assignment without editing a model. Detect a case-ID collision and make the member, load direction and units explicit.
- Environment
- Current browser, or Node.js 20.9+. Verified locally with Node.js 24.22.1 on Windows. No npm install.
- Data and units
- Member length in m; uniform load in kN/m; signed resultant in kN. Global Y is upward-positive here.
- Expected result
- Proposed case 35 on member 501: −2 kN/m in global Y over 6 m, giving −12 kN. Model writes remain zero.
Follow the recipe.
- Select an existing member by its ID and reserve a new primary-case ID.
- Validate the direction GY and the signed line-load value in kN/m.
- Review the dry-run resultant and modelWrites: 0. No Apply action is provided.
Failure to reproduce
A proposed case ID that already exists is blocked. Unknown members and mismatched load units are also rejected.
Download the failure fixture and compare its result with the reference fixture.
This is a dry-run teaching plan, not a live load-assignment API implementation. Live writes require an independently verified, version-specific mapping and an agreed model-change procedure.
Try the supplied example.
This runner reads only the bundled synthetic fixtures. It does not upload files or contact a live model.
Enable JavaScript to run the example here. Source, fixtures and expected output remain downloadable.
Run an example to inspect its result.Run the same source locally.
Extract the complete source bundle, open a terminal in that folder and run:
node run.mjs load-plan fixtures/reference-model.jsonUse fixtures/load-plan-failure.json to reproduce the documented failure. Exit 0 means the bounded exercise ran; 1 means blocked or mismatched; 2 means invalid invocation or unreadable input.
Read the underlying implementation and API contract
The browser and CLI share the same local JavaScript implementation. The bundle includes the runner, fixtures, expected outputs, source checksums and optional read-only C# source.
Native integration reference: Pinned StaadPro.Interop documentation (commit 02fc97a19010). The offline fixture is not a native API export and cannot establish compatibility with an installed STAAD.Pro build.
