Document Objects
A "Document" Object is a type of object that generates a printable report that includes information about the project.
Parameters of Document Object:
| | Label | Mandatory | Description | Example | | --- | --- | --- | --- | | 1 | Title | Yes | Title of the Document / Project. | Title="Column"
Title="Project Report"
The sub-components of the Document object will be displayed.
1)DocSection Object:
It breaks down the document into different sections, and also includes a sidebar that provides links to other sections within the document for easier navigation.
Example:
...
...
<O T="Document" Title="Document Example">
<O T="DocSection" Title="Introduction ">
<O T="DocText">
Width \|width\|, height \|height\| This is an example of a text description for an object created using a ParamML parametric language
</O>
</O>
<O T="DocSection" Title="3D Model ">
<O T="DocText">
<![CDATA[
--md
In this section of the document, a visual representation of the 3D object will be provided.
]]>
</O>
<O T="Doc3D" Width="600" Height="300">
<P N="Obj3D" V="Vol" />
</O>
</O>
...
...
Parameters of DocSection Object:
| | Label | Mandatory | Description | Example | | --- | --- | --- | --- | | 1 | Title | Yes | Title of the specified Document Section. | Title="Graph"
Title="3D Model"
2)DocText Object:
The text contained within this object is displayed in the designated section as paragraphs.
To begin, the text should be typed in Markdown format (--md). All subsequent text should be aligned with --md.
Example:
Header Size: The size of the header is determined by the number of hash symbols (#) used. One hash symbol (#) is used for the largest heading, while six hash symbols (######) are used for the smallest heading. The more hash symbols used, the smaller the header size will be.
Heading Size: The size of the heading is determined by the use of equal signs (=) and hyphens (-). Equal signs result in larger text compared to hyphens. To create a heading, place either a hyphen or an equal sign beneath the text.
Printing with a Different Color (Emphasis): Text enclosed within grave accents ( ) will be highlighted in a different color.
Font Style (Italic): Text enclosed within asterisks (* *) will be displayed in italic style.
Font Style (Bold): Text enclosed within two asterisks (** **) will be displayed in bold.
Table: Table headings are enclosed within vertical slashes ( | | ). The position of the columns in the table is determined by the use of colons ( : ) placed between the vertical slashes. If two dots are placed next to the left vertical slash, the text in that column will be aligned to the left. The opposite is true for alignment to the right. If two dots are placed next to both the left and right vertical slashes, the text will be centered within the column. The text within the vertical slashes will be displayed in the table in the same order.
Reading a Value from a Parameter: When a value is enclosed within vertical slashes ( |d| ) in the code, it is treated as a parameter.
Striking Text: Text enclosed within two tildes (~~ ~~) will be crossed out.
Creating a CheckBox: A checkbox can be created by leaving a space after one hyphen, followed by square brackets with spaces inside. If there is a space within the brackets, the checkbox will be unselected. If an "x" is used instead of a space, the checkbox will be selected.
Creating a Code Block: Text enclosed within three grave accents ( ) will be displayed as a code block.
Creating Emoji: Emojis can be created by enclosing the emoji name within two colons (😄).
Creating an Image: An image can be created by typing "![Logo]", followed by the image link within parentheses and the hover text within double quotation marks (" ") after the link.
Example:
| <br><O N="DocumentObject2" T="Project" Category="Document Object" TransAlignRule="Right"><br> <!-- created by ParamML Examples on 10.02.2023 --><br> <P N="d" V="15.21" /><br> <O N="Doc 1" T="Document"><br> <O T="DocText"><br> <![CDATA[<br> --md<br> <br> # OpenBrIM Markdown<br> OpenBrIM DocText object supports GitHub compatible markdown content which can be directly rendered inside documents and design reports.<br> <br> Markdown content must start following --md keyword. The markdown content must follow the same indentation as this keyword.<br> <br> Here are some of the things that are supported:<br> <br> ## The second largest heading<br> <br> This is an H1<br> =============<br> <br> This is an H2<br> -------------<br> <br> This text will be italic<br> This text will be bold<br> <br> ###### Material Type Lists:<br> 1. Steel<br> 2. Concrete<br> 3. Wooden<br> <br> ### Tables:<br> <br> | Column Type | Location | Material |<br> |: ------------- |:-------------:| -----:|<br> | Column 1 | 1stFloor | Steel |<br> | Column 2 is | 2ndFloor | Concrete |<br> | Column 3 |d| s | 3rd Floor | Wooden |<br> <br> |d| "d" Parameters Shown |d|<br> <br> ## Task Lists<br> <br> - [x] checked list item<br> - [ ] unchecked list item<br> <br> ## Code Blocks<br> Steel = ASTM A615 Grade 60 Rebar Concrete strength = C30 Wooden --> oak tree bending σ=75 kg/cm'2 <br> <br> ## Emoji<br> <br> this is a 😄 smile emoji<br> <br> ## Images<br> <br> <br> ]]><br> </O><br> </O><br></O><br> |
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Document+Object&obj=objidep9yv918v687pt0cj15xq9)
3)Doc3D Object
This object enables you to showcase the 3D model of the project within the document.
Parameters of Doc3D Object:
| | Label | Mandatory | Description | Example | | --- | --- | --- | --- | | 1 | Width | Yes | Width of the display in pixel. | Width="600" | | 2 | Height | Yes | Height of the display in pixel. | Height="400" | | | Label | Mandatory | Name Attribute | Value Attribute | Type Attribute | | --- | --- | --- | --- | --- | | 1 | Obj3D | Yes | N="Obj3D" | Name of 3D object or group.
Example: V="Pier" | Type of 3D object (Surface, Circle, Volume, Line) or group.
Example: T="Volume"; T="Group"
4)DocCADD Object:
With this object, 2D drawings of the project or the desired object can be displayed in the document.
Example:
Parameters of DocCADD Object:
| | Label | Mandatory | Description | Example | | --- | --- | --- | --- | | 1 | Width | Yes | Width of the display in pixel. | Width="600" | | 2 | Height | Yes | Height of the display in pixel. | Height="400" | | | Label | Mandatory | Name Attribute | Value Attribute | Type Attribute | | --- | --- | --- | --- | --- | | 1 | CADD | Yes | N="CADD" | Name of CADD objects or CADDFrom3D object .
Example: V="Elevation" | T="CADD" |
5)DocCode Object:
This object serves to display the ParamML code in the document.
Example:
6)DocGraph Object:
Using this object, linear graphics can be displayed in the document.
Example:
| --- | --- | --- | --- | | 1 | Title | Yes | Title indicated inside the graph. | Title="Graph 1" | | 2 | Width | Yes | Width of the display in pixel. | Width="600" | | 3 | Height | Yes | Height of the display in pixel. | Height="400" | | 4 | AxisLabelX | Yes | Variable name along X-axis. | AxisLabelX="Width" | | 5 | AxisLabelY | Yes | Variable name along Y-axis. | AxisLabelY="Height" | | 6 | DataList | Yes | Data plotted along X-axis and Y-axis.
V="[X value, Y value]" | DataList="[0,0],[8,16],[12,28] " |
7)DocTable Object:
With this object, a table can be prepared and displayed in the document.
Example:
Example:
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objid0f7ab4sjh1fl38g9nx5clhn)
8)DocSectionAnalysis: With this object, section analysis and calculations, such as rebar stress, flexural capacity, and interaction diagrams, can be displayed in the document. The values that affect the results can be overridden in the document, and changes in the results along the section can be reviewed instantaneously.
Example :
AnalysisType: 0 flexural strength, 1 moment curvature, 2 interaction diagram, 3 rebar stress.
Interaction check by moment direction. With AnalysisType="2" and a Demands list, the element checks the demands and draws one chart per moment direction that has demands, instead of the interactive view. Each chart is the section editor's Interaction Diagram chart for that direction: the capacity off the section's interaction surface, factored (solid) and nominal (dashed), the axial limit, and the demands nearest that direction, with a table of them under it. A direction with no demand draws nothing. Printed, each direction's chart stays with its table.
Demands
[[P, My, Mz], ...], P compression positive (the arguments of interactionRatio); one demand may be given flat, [P, My, Mz]
DemandLabels
one name per demand (one name alone may be given as text)
DirectionStep
degrees between charts, a whole divisor of 360 (10); another value is taken to the nearest
AxialLimit
the factored axial limit (P_nmax); 0 or less, none
DemandUnits
the units forces and moments are shown in: a Unit object, such as a design object's DR_ForceU; the project's Property units when not given
Each demand's D/C is the value a library table built from interactionRatio with that limit reports: round(max(iif(r >= 0, r, 99), iif(P > 0 and AxialLimit > 0, P / AxialLimit, 0)), 2), read in the demand's own direction on the same surface, and failing (red) above 1. That holds when the element's Ecu, Ecl, Etl, PhiComp, PhiTens and Refinement are the arguments of the interactionRatio call, its step left at the default. Where the section carries no load along the demand's line from the origin in its plane (interactionRatio gives -1), it reads 99, and the chart marks it failing. A demand whose value reaches the element missing, blank or not a number (text, true or false, a list) is not checked: it is listed apart, at 99. ParamML arithmetic before the element already turns a missing value into 0 (-x of a missing value, an index past the end of a row), as in a library table; check the results for that upstream. The line over the charts names the largest D/C and counts the demands with none.
A demand is drawn on the chart of the direction nearest its own (a demand at 37° on the 40° chart). With a step above 10°, a demand more than 5° from its chart's direction is drawn hollow, as at another angle; its D/C is still its own. Forces and moments are shown in DemandUnits, or in the project's Property units when it is not given; set it to the unit the object's other tables use, so a demand reads the same in both. The unit changes no D/C.
In this example res holds analysis results [Fx, My, Mz] with Fx tension positive, so P = -Fx:
Last updated