Extends
Methods
(static) addCustomSection(name, material_id)
Add a custom section 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) addLibrarySection(path, material_id)
Add a section from the SkyCiv section library.
Parameters:
Name | Type | Description |
---|---|---|
path |
Array.<string> |
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. |
Example
const sections = new Sections();
sections.addLibrarySection(['Australian', 'Steel (300 Grade)', 'Universal beams', '200 UB 18.2'], 1);
// or
sections.addLibrarySection(skyciv.sections.Australian_Steel_300_Grade_Universal_beams_200_UB_18_2, 1);
(static) idsFromPath(path)
Get all sections that match a SkyCiv section library path.
Parameters:
Name | Type | Description |
---|---|---|
path |
Array.<string> |
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. |