Sections

Sections

new Sections()

Creates an instance of the SkyCiv Sections class.

Source:

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.

Source:

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

Source:
Example
const path = ["American", "AISC", "W shapes", "W14x22"]

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

Source:
Example
const path = ["American", "AISC", "W shapes", "W14x22"]