new Section()
Creates an instance of the SkyCiv Section class. Following the creation of a new section object. Use one of the methods to create a section.
Methods
(static) clearSelf()
Delete all properties of the section.
(static) loadCustom(name, material_id)
Set the section to a custom shape created in SkyCiv section builder.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
The name of a custom shape defined in SkyCiv Section Builder. |
material_id |
number |
The ID of the material that is assigned to the section. |
(static) loadSection(pathopt, material_id)
Set the section from the SkyCiv section library.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
Array.<string> |
<optional> |
Provided as an array of 4 strings (see example below). It is the path of the section in the section library, obtained by inspection from within SkyCiv Section Builder or by attaining the library tree via S3D.SB.getLibraryTree. |
material_id |
number |
The ID of the material that is assigned to the section. |