OpenSite/Reference/Commands/Create an example document: Difference between revisions
BathAfrica (talk | contribs) Reorganize OpenSite help: learning paths, examples and chapter navigation |
BathAfrica (talk | contribs) Link adjacent OpenSite reference pages in reading order |
||
| Line 29: | Line 29: | ||
[[Category:OpenSite documentation]] | [[Category:OpenSite documentation]] | ||
<div class="os-page-nav">{{Docnav|OpenSite/ | <div class="os-page-nav">{{Docnav|OpenSite/Reference/Commands/Document demo|OpenSite/Reference/Commands/Inspect a document|OpenSite/Guides|All guides}}</div> | ||
Latest revision as of 14:14, 29 October 2026
Create a 0.30 m by 0.60 m rectangular section and save it.
- Stable identifier
cli.document.example
Implementation milestone
Document-engine example, available in this development snapshot.
Units
Width and height are stored in metres. Area is square metres. Second moments are metres to the fourth.
Terminal example
Python access
The CLI verb has no separate function. opensite.execute('document.create_section', ...) is Document commands.
Output
Stdout lists the object and properties, including area si=0.18 and unit=m2. The saved opensite-document writer format is version 4; the loader accepts versions 1, 2 and 3 through its migration paths.
Errors
Exit 1 when the file cannot be saved, with the status message on stderr. Exit 2 when the arguments do not match the usage.
Limitations
The section is a document calculation. It is not a design-code check and not the section-design plugin. Local axes: x along the width, y along the height, z along the member.
Verification evidence
Repository evidence references (not rerun for this publication): CTest cli.document and document.section_reference.
Try this workflow
First document — a worked lesson with expected results.
Documentation basis
Source-reviewed against development commit 77c3fee13944bcc4b5d487c77eb1f82fbe4c6ea7, branch feature/phase-13c-properties-python-expressions. This review inspected the implementation and repository evidence; it did not run the Windows application or repeat CTest.
src/cli/main.cppsrc/cli/document_commands.cppsrc/cli/preference_commands.cppsrc/application/builtins.cpp