v2.0
 
Style Namespace Reference

Functions

nil SetDetailedGeometry (ModelGeometry geometry)
 Sets the detailed geometry for the object style.
 
nil SetSymbolicGeometry (ModelGeometry geometry)
 Sets the symbolic geometry for the object style.
 
nil SetSymbolGeometry (ModelGeometry geometry)
 Sets the symbol geometry for the object style.
 
nil SetInsulationSkeleton (table parts)
 Sets the insulation skeleton for the object.
 
table GetParameterValues ()
 Returns a table of parameter values.
 
ParameterGroup GetParameterGroup (string groupName)
 Returns a group of parameters by name.
 
Parameter GetParameter (string groupName, string paramName)
 Returns a parameter by group name and parameter name.
 
Port GetPort (string name)
 Returns the port by name.
 
nil AddRebar (number id, Curve3D curve)
 Adds the rebar defined by the rebar style and the curve.
 
nil 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 (Curve3D, table Curve2D, table Placement3D, InsulationCapType, InsulationCapType). Each part is defined by: Guide curve Curve3D, Array of 2D section curves (Curve2D), Array of coordinate systems (Placement3D). The curves are located in the XY-planes, С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({{spine1, {contour}, {placement1}, InsulationCapType.None, InsulationCapType.Flat},
{spine2, {contour}, {placement2}, InsulationCapType.Flat}})
Local coordinate system in three dimensional space.
Two-dimensional point.
Three-dimensional point.
Three-dimensional vector.
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:14
nil SetInsulationSkeleton(table parts)
Sets the insulation skeleton for the object.
Since
v3.0