Skip to main content

Module result_proposals

Module result_proposals 

Source
Expand description

Result values proposed by the assistant from a report.

The assistant reads a CFD or FEA report (read_file_text) and proposes key numbers with propose_result_values. A proposal is a draft: it names the file version it was read from and quotes the text, nothing more. It becomes a result value only when a CAD editor of the project group accepts it in TeamCraft while the simulation revision is checked out to them – the same rule as for a value typed in. The assistant never writes a final value and never releases anything. Every proposal, acceptance and rejection is audited in its own transaction.

Structs§

Proposal
A proposed result value.
ProposalInput
What the assistant proposes.

Constants§

MAX_PENDING
Pending proposals of one revision.
MAX_PER_CALL
Proposals in one call.
MAX_QUOTE_CHARS
Longest quote kept.

Functions§

accept
Makes a pending proposal a result value (same name and load case = update). The revision must be checked out to the actor, like for any change of its values.
get
One proposal, if the actor may see its revision.
list
The proposals of a revision the actor may see, pending first.
propose
Stores proposals as drafts (all or none). Needs a simulation revision that is still in work and a CAD editor of its project group; the file must exist in the revision and the quote must stand in its text.
reject
Rejects a pending proposal (no check-out needed: nothing changes in the revision).