standalone.connection
The standalone.connection namespace runs steel connection design checks with SkyCiv Connection Design: shear, moment, bracing and other connection types.
standalone.connection.start#
At the beginning of every API session, the session must be started. This function must be the first function in the array. This initiates a session and will return a session_id which can be used in subsequent calls made in the following 30 minutes to skip the verification process, thereby dramatically reducing the time to response.
important
The start function must always be the first function even if session_id is provided. Use standalone.connection.start, not S3D.session.start. A check in an S3D session is rejected.
| Key | Type | Accepts | Description | Default |
|---|---|---|---|---|
keep_open | boolean | true, false | If the session should be kept on standby. If true, subsequent calls to the API using the session_id provided from the first call in lieu of key, will be 4-8x faster. | false |
After authenticating using the API key, the response object will contain some useful information. The session_id key can be used to make further calls to the same session, skipping authentication if keep_open was set to true. The session_expiry_time provides an approximate Unix time until the session expires. After this, the user must re-authenticate using their API key.
tip
The returned session_id can be provided in the auth object of subsequent calls to make the request faster.
standalone.connection.check#
Loads a connection into Connection Design, validates it, runs the design checks and returns every check's demand, capacity and ratio, with links to the calculation report. standalone.connection.start must be called before this function. Each check takes about 10–20 seconds.
The arguments object is the connection file: the same JSON that Connection Design saves. It loads the same way as File > Open, and validation and results match a run from the Results tab.
Getting a connection JSON#
The connection file depends on the connection type and configuration. A shear double plate, a vertical brace and a moment connection each have different members, connectors, bolt groups and welds. The most reliable way to build an input is to export one from the software and edit it:
- Open Connection Design and set up the connection type, design code and units on the starter.
- Fill in the members, connectors, bolts, welds and loads.
- Click Download JSON File on the Project tab, or File > Download JSON File.
- Use the downloaded JSON as the
argumentsofstandalone.connection.check. Change values such as sections, materials, plate sizes, bolt arrangements and loads from your own code, but keep the structure.
These samples have been run through the API:
| Sample | Design code | Type | Configuration | Units |
|---|---|---|---|---|
| Shear – double plate | AISC 360-22 LRFD | shear | double-plate-assembly | Imperial |
| Vertical brace – double angle | AISC 360-22 LRFD | vertical_brace | upper-vertical-brace-double-angle-assembly | Imperial |
| Horizontal brace – single angle | AISC 360-16 ASD | horizontal_brace | horizontal-brace-with-column-single-angle-assembly | Imperial |
| Shear – single angle | AS 4100:2020 | shear | single-angle-assembly | Metric |
caution
The abridged sample above is for reading only. Send the full exported file. Keys that look like UI state (tab_is_active, active_part, bolt_geometry, points …) are part of the file format, so leave them in.
Input structure#
The connection file has these top-level keys. All of them are required.
| Key | Type | Description |
|---|---|---|
modal_data | object | The connection type, design code and units, as chosen on the starter. See below. |
assembly | object | Members (beam, column, girder, braces …), their sections and materials, and the connectors (plates, angles …) in connections. |
fixtures | object | Bolt groups (bolts) and welds (welds). They are listed in the order of assy. |
loads | object | Load cases in loads_arr, plus utility_ratio_limit. |
project_details | object | Optional strings for the report: company, designer, client, name, id, notes. |
data_version | integer | File format version (3). Keep the exported value. |
modal_data#
| Key | Type | Description |
|---|---|---|
code | string | Design code, e.g. "AISC 360-16 ASD", "AISC 360-16 LRFD", "AISC 360-22 LRFD", "AS 4100:2020". Use the exact string from an exported file. |
category | string | Connection category, e.g. "i-to-i", "bracing". |
type | string | Connection type, e.g. "shear", "vertical_brace", "horizontal_brace". |
config | string | The configuration, e.g. "double-plate-assembly", "single-angle-assembly". It decides which members, connectors, bolt groups and welds the file must have. |
config_label | string | Display name of config, e.g. "Double Plate". |
orientation | string | Member orientation, e.g. "BCF", "BBW", "BCW", or "NA". |
parent_member | string | Supporting member: "column" or "girder". |
unit_system | string | "English / Imperial" or "SI / Metric". All lengths, forces and stresses in the file and the results use this system. |
assembly#
Every member slot is in the file (beam, left_beam, right_beam, column, lower_column, upper_column, girder, brace, lower_brace, upper_brace, left_brace, right_brace). Each has <member>_section, <member>_material and <member>_dims. Slots the configuration doesn't use have "" and {}.
| Key | Type | Description |
|---|---|---|
<member>_section | string | Section name from the library, e.g. "W18x50", "460 UB 82.1", "L4x4x1/2". |
<member>_material | object | name (e.g. "A992", "AS/NZS 3679.1 Gr.300"), E, and fy / fu where the code uses them. |
<member>_dims | object | Section geometry (section_dims, Ag, Syp, Szp, shape …) plus member options such as clearance, coping (top_coping_length …) or brace geometry (brace_slope, unbraced_length, double_angle …). |
connections | array | Connectors. A plate has connector: "plate" and b, h, thk (or b1, h1, b2, h2, o1, o2 for gussets). An angle has connector: "section" and angle_section, length, dims, points. Both have name, material, fy and fu. |
note
To change a member, change only <member>_section. The section's geometry is read again from the library by name, so you don't need to update section_dims, Ag, Syp or Szp in <member>_dims as well. Use the exact library name, e.g. "W18x50".
fixtures#
| Key | Type | Description |
|---|---|---|
assy | array | Names of the bolt groups and welds in this configuration, in order. |
bolts | array | One entry per assy item, {} where that item is a weld. Keys include name, material (e.g. "A325N", "A490-SC(A)", "8.8/S"), diameter (e.g. "3/4 in", "M20 mm"), arrangement (rows × columns, e.g. "4x1"), edge, row (row spacing), column, gage, hole_type_member / hole_type_connector (e.g. "STD", "OVS", "HSSL", "Nominal"), Lev / Leh (edge distances). |
welds | array | One entry per assy item, {} where that item is a bolt group. Keys include name, material (e.g. "E70XX"), size, field_weld ("YES" / "NO"), sides. |
bolt_geometry, weld_laps | object | Lookup tables for the code. Keep them as exported. |
loads#
| Key | Type | Description |
|---|---|---|
utility_ratio_limit | number | Ratio limit used for pass/fail (normally 1). |
loads_arr | array | Load cases. Each has id, type (e.g. "DL") and string force values: fx, fy, fz, mx, my, mz (beam end forces) and the member forces brace_axial, upper_brace_axial, lower_brace_axial, left_brace_axial, right_brace_axial, column_axial, column_moment, branch_axial, branch2_axial, chord_axial, chord_moment. Only the forces that apply to the configuration are used. Several values can be separated by commas, e.g. "49,-49", to check the connection for both tension and compression. |
Loads are in the file's units: kip and kip-ft (English / Imperial), or kN and kN-m (SI / Metric).
Response#
On success, response.data holds:
| Key | Type | Description |
|---|---|---|
results_array | array | Every design check. See below. |
report_links | object | html_view_link, html_download_link, pdf_download_link for the full calculation report, plus no_drawing links to the report without drawings. These links are temporary. |
summary_report_links | object | The same links for the summary report. |
svg_drawings | array | Detailing drawings as SVG strings, for the connection types that draw them. |
aisc_edition | string | AISC jobs only: the edition the solver ran, e.g. "360-22". |
api_warnings | array | Only present when there is something to note, e.g. the solver ran a different AISC edition from modal_data.code. |
Each results_array item:
| Key | Type | Description |
|---|---|---|
name | string | The check, e.g. "Design Capacity of the Bolt Group in Shear". |
demand | number | Demand. |
value | number | Capacity. |
ratio | number | demand / value. The check passes when ratio ≤ loads.utility_ratio_limit. |
demand_units / capacity_units | string | e.g. "kip", "kip*ft", "in", "kN". Not present for unitless interaction checks. |
con_id | number | Index of the connection the check belongs to. |
detailing_items | array | Only on Connection Detailing Limitations checks: each detailing rule with name, limit_type (min / max), limit, actual, units, demand, capacity, ratio. |
Configurations with several parts (e.g. bracing) also have header rows that group the checks below them. In these, value, demand and ratio are the string "header", e.g. { "name": "Upper Brace Connection to Gusset Plate", "value": "header", "demand": "header", "ratio": "header" }. Skip them when looking for the governing ratio.
There is no overall pass/fail field. Take the largest numeric ratio:
Errors#
When the check can't run, status is 1 and the reason is in errors, warnings and conflicts:
| When | Example errors |
|---|---|
| The file is missing a required key | ["modal_data.code is missing."] |
An input is invalid. These are the same fields the UI's Invalid Input alert lists, as "<group>: <field>". | ["Beam: Section"], ["Fixture 2: Bolt Diameter"] |
| The design run failed on the server | The server's message |