Inspect model identity and inventory.
Keep the model revision, units and structural IDs together before any automation task. Reproduce an inventory using IDs that deliberately differ from array positions.
- Environment
- Current browser, or Node.js 20.9+. Verified locally with Node.js 24.22.1 on Windows. No npm install.
- Data and units
- Coordinates in m. Force context in kN; this recipe reads no analysis results.
- Expected result
- 2 nodes, 1 member and 2 primary cases. Node IDs are 101 and 207; the member is 501.
Follow the recipe.
- Read the fixture identity, revision and explicit unit contract.
- Validate unique positive IDs and member connectivity before counting entities.
- Compare the two node IDs and one member ID with the input; do not substitute row numbers.
Failure to reproduce
A repeated node ID blocks the inventory instead of quietly overwriting an entity.
Download the failure fixture and compare its result with the reference fixture.
An inventory does not certify the physical adequacy or completeness of a structural model. The live companion reads session metadata; it does not claim this synthetic geometry came from STAAD.
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 model-inspection fixtures/reference-model.jsonUse fixtures/model-inspection-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.
