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. |
(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. |