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.

KeyTypeAcceptsDescriptionDefault
keep_openbooleantrue, falseIf 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
Sample input for standalone.connection.start
{
"function": "standalone.connection.start",
"arguments": { "keep_open": 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:

  1. Open Connection Design and set up the connection type, design code and units on the starter.
  2. Fill in the members, connectors, bolts, welds and loads.
  3. Click Download JSON File on the Project tab, or File > Download JSON File.
  4. Use the downloaded JSON as the arguments of standalone.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:

SampleDesign codeTypeConfigurationUnits
Shear – double plateAISC 360-22 LRFDsheardouble-plate-assemblyImperial
Vertical brace – double angleAISC 360-22 LRFDvertical_braceupper-vertical-brace-double-angle-assemblyImperial
Horizontal brace – single angleAISC 360-16 ASDhorizontal_bracehorizontal-brace-with-column-single-angle-assemblyImperial
Shear – single angleAS 4100:2020shearsingle-angle-assemblyMetric
Sample input for standalone.connection.check (abridged)
{
"functions": [
{
"function": "standalone.connection.start",
"arguments": { "keep_open": false }
},
{
"function": "standalone.connection.check",
"arguments": {
"modal_data": {
"category": "i-to-i",
"code": "AS 4100:2020",
"config": "single-angle-assembly",
"config_label": "Single Angle",
"orientation": "BCF",
"parent_member": "column",
"type": "shear",
"unit_system": "SI / Metric"
},
"project_details": { "units": "", "company": "", "designer": "", "client": "", "name": "", "id": "", "notes": "" },
"assembly": {
"beam_section": "460 UB 82.1",
"beam_material": { "name": "AS/NZS 3679.1 Gr.300", "E": 200000 },
"beam_dims": { "clearance": "12", "section_dims": { "...": "..." }, "shape": "ibeam" },
"column_section": "310 UC 158",
"column_material": { "name": "AS/NZS 3679.1 Gr.300", "E": 200000 },
"column_dims": { "...": "..." },
"connections": [
{ "connector": "section", "name": "single-angle", "material": "AS/NZS 3679.1 Gr.300", "angle_section": "100x6 EA", "length": 300, "...": "..." }
],
"...": "..."
},
"fixtures": {
"assy": ["Angle-Bolt-to-Beam-Web", "Angle-Bolt-to-Column-Flange"],
"bolts": [
{ "name": "Angle-Bolt-to-Beam-Web", "material": "8.8/S", "diameter": "M20 mm", "arrangement": "4x1", "edge": 50, "row": 75, "...": "..." },
{ "name": "Angle-Bolt-to-Column-Flange", "material": "8.8/S", "diameter": "M20 mm", "arrangement": "4x1", "edge": 60, "row": 75, "...": "..." }
],
"welds": [{}, {}],
"...": "..."
},
"loads": {
"utility_ratio_limit": 1,
"loads_arr": [
{ "id": "1", "fx": "0", "fy": "150", "fz": "0", "mx": "0", "my": "0", "mz": "0", "brace_axial": "0", "...": "0", "type": "DL" }
]
},
"analysis": {},
"data_version": 3
}
}
]
}
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.

KeyTypeDescription
modal_dataobjectThe connection type, design code and units, as chosen on the starter. See below.
assemblyobjectMembers (beam, column, girder, braces …), their sections and materials, and the connectors (plates, angles …) in connections.
fixturesobjectBolt groups (bolts) and welds (welds). They are listed in the order of assy.
loadsobjectLoad cases in loads_arr, plus utility_ratio_limit.
project_detailsobjectOptional strings for the report: company, designer, client, name, id, notes.
data_versionintegerFile format version (3). Keep the exported value.

modal_data#

KeyTypeDescription
codestringDesign 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.
categorystringConnection category, e.g. "i-to-i", "bracing".
typestringConnection type, e.g. "shear", "vertical_brace", "horizontal_brace".
configstringThe configuration, e.g. "double-plate-assembly", "single-angle-assembly". It decides which members, connectors, bolt groups and welds the file must have.
config_labelstringDisplay name of config, e.g. "Double Plate".
orientationstringMember orientation, e.g. "BCF", "BBW", "BCW", or "NA".
parent_memberstringSupporting member: "column" or "girder".
unit_systemstring"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 {}.

KeyTypeDescription
<member>_sectionstringSection name from the library, e.g. "W18x50", "460 UB 82.1", "L4x4x1/2".
<member>_materialobjectname (e.g. "A992", "AS/NZS 3679.1 Gr.300"), E, and fy / fu where the code uses them.
<member>_dimsobjectSection 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 …).
connectionsarrayConnectors. 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#

KeyTypeDescription
assyarrayNames of the bolt groups and welds in this configuration, in order.
boltsarrayOne 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).
weldsarrayOne 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_lapsobjectLookup tables for the code. Keep them as exported.

loads#

KeyTypeDescription
utility_ratio_limitnumberRatio limit used for pass/fail (normally 1).
loads_arrarrayLoad 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:

KeyTypeDescription
results_arrayarrayEvery design check. See below.
report_linksobjecthtml_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_linksobjectThe same links for the summary report.
svg_drawingsarrayDetailing drawings as SVG strings, for the connection types that draw them.
aisc_editionstringAISC jobs only: the edition the solver ran, e.g. "360-22".
api_warningsarrayOnly present when there is something to note, e.g. the solver ran a different AISC edition from modal_data.code.

Each results_array item:

KeyTypeDescription
namestringThe check, e.g. "Design Capacity of the Bolt Group in Shear".
demandnumberDemand.
valuenumberCapacity.
rationumberdemand / value. The check passes when ratio ≤ loads.utility_ratio_limit.
demand_units / capacity_unitsstringe.g. "kip", "kip*ft", "in", "kN". Not present for unitless interaction checks.
con_idnumberIndex of the connection the check belongs to.
detailing_itemsarrayOnly 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:

const checks = response.data.results_array.filter(c => typeof c.ratio === 'number');
const governing = checks.reduce((a, c) => (c.ratio > a.ratio ? c : a));
const passes = checks.every(c => c.ratio <= 1); // or loads.utility_ratio_limit
Sample response for standalone.connection.check (abridged)
{
"data": {
"results_array": [
{
"name": "Connection Detailing Limitations Check (at OSL)",
"demand": 35, "value": 37.5, "ratio": 0.933, "con_id": 1,
"detailing_items": [
{ "name": "Minimum Bolt Row Pitch", "limit_type": "min", "limit": 50, "actual": 75, "units": "mm", "demand": 50, "capacity": 75, "ratio": 0.667 }
]
},
{ "name": "Design Capacity of the Bolt Group in Shear (at OSL)", "demand": 150, "value": 288.999, "ratio": 0.519, "con_id": 1, "demand_units": "kN", "capacity_units": "kN" },
{ "name": "Design Capacity of Angle in Shear (at OSL)", "demand": 150, "value": 259.2, "ratio": 0.579, "con_id": 1, "demand_units": "kN", "capacity_units": "kN" }
],
"report_links": {
"html_view_link": "https://solver.skyciv.com/temp/view_report_kR5hMLQ3D1lnnbv3.php",
"html_download_link": "https://solver.skyciv.com/temp/download_html_report_kR5hMLQ3D1lnnbv3.php",
"pdf_download_link": "https://solver.skyciv.com/temp/download_report_kR5hMLQ3D1lnnbv3.php",
"no_drawing": { "html_download_link": "...", "pdf_download_link": "..." }
},
"summary_report_links": { "...": "..." },
"svg_drawings": ["<svg ...>...</svg>", "<svg ...>...</svg>"]
},
"msg": "Connection design complete, returning results",
"status": 0,
"function": "standalone.connection.check"
}

Errors#

When the check can't run, status is 1 and the reason is in errors, warnings and conflicts:

WhenExample 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 serverThe server's message