Section

Section

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.

Source:

Methods

(static) clearSelf()

Delete all properties of the section.

Source:

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

Source:

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

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