v4.0
Creating engineering objects and reinforcement unit styles

Functions

nil Style::SetDetailedGeometry (ModelGeometry geometry)
 Sets the detailed geometry for the object style.
nil Style::SetSymbolicGeometry (ModelGeometry geometry)
 Sets the symbolic geometry for the object style.
nil Style::SetSymbolGeometry (ModelGeometry geometry)
 Sets the symbol geometry for the object style.
nil Style::SetInsulationSkeleton (table parts)
 Sets the insulation skeleton for the object.
table Style::GetParameterValues ()
 Returns a table of parameter values.
ParameterGroup Style::GetParameterGroup (string groupName)
 Returns a group of parameters by name.
Parameter Style::GetParameter (string groupName, string paramName)
 Returns a parameter by group name and parameter name.
Port Style::GetPort (string name)
 Returns the port by name.
nil Style::AddRebar (number id, Curve3D curve)
 Adds the rebar defined by the rebar style and the curve.
nil Style::AddRebarSet (number id, Curve3D curve, Vector3D direction, number step, number count)
 Adds the rebar set.

Function Documentation

◆ AddRebar()

nil Style::AddRebar ( number id,
Curve3D curve )

Adds the rebar defined by the rebar style and the curve.

Since
v2.0

◆ AddRebarSet()

nil Style::AddRebarSet ( number id,
Curve3D curve,
Vector3D direction,
number step,
number count )

Adds the rebar set.

Parameters
idThe style id.
curveThe base curve.
directionThe direction of arrangement of the rebars.
stepThe interval between the rebars.
countThe count of the rebars.
Since
v2.0

◆ GetParameterValues()

table Style::GetParameterValues ( )

Returns a table of parameter values.

Returns
Table of parameter values of the form [group name][parameter name][parameter value].

◆ SetInsulationSkeleton()

nil Style::SetInsulationSkeleton ( table parts)

Sets the insulation skeleton for the object.

Parameters
partsEach element of the table describes a part of insulation (table Curve2D, table Placement3D, Curve3D, InsulationCapType, InsulationCapType). Each part is defined by:
Array of 2D section curves (Curve2D),
Array of coordinate systems (Placement3D). The curves are located in the XY-planes,
Guide curve Curve3D,
Сap type at the beginning of the spine. Acceptable values: InsulationCapType.None, InsulationCapType.Flat (default InsulationCapType.None).
Сap type at the end of the spine. Acceptable values: InsulationCapType.None, InsulationCapType.Flat (default InsulationCapType.None).
The size of the section curves array must be equal to the size of the placements array.
Section curve must be closed.
Example
local spine1 = CreateLineSegment3D(Point3D(0, 0, 0), Point3D(100, 0, 0))
local spine2 = CreateLineSegment3D(Point3D(0, 0, 0), Point3D(0, 100, 0))
local contour = CreateRectangle2D(Point2D(100, 100), 0, 100, 50)
local placement1 = Placement3D(Point3D(0, 0, 0), Vector3D(-1, 0, 0), Vector3D(0, 0, -1))
local placement2 = Placement3D(Point3D(0, 0, 0), Vector3D(0, 1, 0), Vector3D(0, 0, -1))
Style.SetInsulationSkeleton({{{contour}, {placement1}, spine1, InsulationCapType.None, InsulationCapType.Flat},
{{contour}, {placement2}, spine2, InsulationCapType.Flat}})
Local coordinate system in three dimensional space.
Two-dimensional point.
Three-dimensional point.
Three-dimensional vector.
nil SetInsulationSkeleton(table parts)
Sets the insulation skeleton for the object.
Curve3D CreateLineSegment3D(Point3D startPoint, Point3D endPoint)
Creates line segment.
Curve2D CreateRectangle2D(Point2D center, double angle, number width, number height)
Creates a rectangle as composite curve of four line segments.
The Style namespace contains functions to set geometry, create rebars, get parameters and ports.
Definition GeometryStyleMethodRegistrator.h:16
Since
v3.0