Load Generator Agent Skill

You are an agent that retrieves wind speeds, snow loads, wind pressures, and seismic data for any location worldwide using the SkyCiv Load Generator API (standalone.loads namespace). This skill covers all functions, parameters, and design codes.

Prerequisite: Always begin a session with S3D.session.start as the first function. See the skyciv-core skill for auth, options, and the request/response envelope.


Session Start#

Use standalone.loads.start instead of S3D.session.start when running load-generator-only sessions:

{
"function": "standalone.loads.start",
"arguments": { "keep_open": false }
}

Alternatively, S3D.session.start also works for sessions that combine load generation with structural analysis.


Supported Design Codes#

design_code valueStandardLoad Types
asce7-10ASCE 7-10Wind, Snow
asce7-16ASCE 7-16Wind, Snow, Seismic
asce7-22ASCE 7-22Wind, Snow, Seismic
as1170AS/NZS 1170Wind, Snow, Seismic (NZS 1170.5)
en1991Eurocode EN 1991Wind, Snow
nbcc2015NBCC 2015Wind, Snow
nbcc2020NBCC 2020Wind, Snow
is875IS 875Wind
nscp2015NSCP 2015Wind, Snow, Seismic
cfe-vientoCFE Viento (Mexico)Wind
cte-db-seCTE DB SE-AE (Spain)Wind

Use standalone.loads.getCountryDesignCodes to fetch the current supported list dynamically.


standalone.loads.getCountryDesignCodes#

Returns all supported design codes grouped by country and load type.

{
"function": "standalone.loads.getCountryDesignCodes",
"arguments": {}
}

Response includes both human-readable (country_design_code) and API-key versions (API_design_codes). Always use the API_design_codes values in your requests.


standalone.loads.getSiteData#

Get site-specific wind speed, snow load, and seismic data for a location with minimal input. Useful for quickly determining site parameters before running a full load calculation.

{
"function": "standalone.loads.getSiteData",
"arguments": {
"site_data": {
"design_code": "asce7-16",
"project_address": "Chicago, Illinois",
"risk_category": "II"
},
"api_version": 2
}
}

Response structure:

{
"site_data": { "country": "United States", "lat": 41.878, "lng": -87.630, "elevation": 180 },
"wind_data": { "wind_speed": 115, "wind_speed_unit": "mph" },
"snow_data": { "snow_load": 25 },
"seismic_data": { "Z": 0.4, "seismic_zone": 4, "nearest_fault": "...", "D": 18.9 },
"topography": {}
}

standalone.loads.getLoads#

The main function. Returns full design wind pressures and/or snow loads for a building based on site location and building parameters.

{
"function": "standalone.loads.getLoads",
"arguments": {
"project_details": {
"name": "Project Name",
"id": "PROJ-001",
"company": "SkyCiv",
"designer": "Engineer Name",
"units": "imperial"
},
"site_data": { /* see site_data below */ },
"building_data": { /* see building_data below */ },
"site_analysis": { /* optional */ },
"api_version": 2
}
}

site_data Object#

Defines the location and design code parameters.

Common properties (all design codes)#

KeyTypeDescription
design_codestringAPI design code value (see table above)
project_addressstringSite address โ€” uses Google Maps to geocode. Provide this OR lat/lng.
latfloatLatitude (e.g. 41.8781 for Chicago)
lngfloatLongitude (e.g. -87.6298 for Chicago)
wind_directionstringWind direction (towards): N, NE, E, SE, S, SW, W, NW

Design code specific โ€” site_data#

KeyDesign CodeOptions
risk_categoryASCE 7I, II, III, IV
site_classASCE 7-16A, B, C, D, D-default, E
site_classASCE 7-22A, B, BC, C, CD, D, DE, E
site_classNBCC 2020A, B, C, D, E
exposureASCE 7 / NSCP 2015B, C, D (required for topography)
ariAS/NZS 1170Annual Recurrence Interval in years: 1, 5, 10, 20, 25, 50, 100, 200, 500, 1000, 2000, 5000, 10000
sls_and_ulsAS/NZS 1170Object: { country, design_working_life, importance_level } โ€” or false when using ari
sls_and_uls.countryAS/NZS 1170"australia" or "new_zealand"
sls_and_uls.design_working_lifeAS/NZS 1170"construction_equipment", "5_years", "25_years", "50_years", "100_years"
sls_and_uls.importance_levelAS/NZS 1170"1" through "5"
wind_regionAS/NZS 1170A0โ€“A5, B1, B2, C, D, NZ1โ€“NZ4 (optional override)
recurrence_interval or ariNBCC"10_years", "50_years"
importance_levelNBCC"low", "normal", "high", "post_disaster"
limit_stateNBCC"SLS", "ULS"
importance_categoryIS 875I, II, III, IV
structure_class_is875IS 875I, II, III, IV
occupancy_categoryNSCP 2015I, II, III, IV, V
return_periodCFE Viento"10-anos", "50-anos", "200-anos"
barometric_pressureCFE VientoDefault 760 mm Hg
ambient_temperatureCFE VientoDefault 25 ยฐC

site_data.topography sub-object#

KeyDesign CodeDescription
wind_directionAllWind direction for topographic analysis
topo_imageAlltrue to return a base64 elevation image
countryAllCountry name
terrain_categoryAS/NZS 1170CAT1, CAT2, CAT2.5, CAT3, CAT4
terrain_categoryEN 1991 (UK/Ireland)0, I, II, III, IV
terrain_categoryIS 875 / CFE Viento1, 2, 3, 4
season_monthEN 1991For Belgium, France, UK, Ireland
distance_inside_townEN 1991 (UK/Ireland)Default 20 m
distance_from_shoreEN 1991 (UK/Ireland)Default 100 m
displacement_heightEN 1991 (UK/Ireland)Default 0
snow_regionAS/NZS 1170AU: AN, AC, AS, AT โ€” NZ: N1โ€“N5
snow_terrain_classAS/NZS 11701, 2, 3
snow_area_classificationAS/NZS 1170 / NBCC"alpine", "sub-alpine" (AS) or "rural", "exposed-north-treeline" (NBCC)

User-defined overrides (optional)#

KeyApplicable codes
wind_speed_overrideASCE 7, AS/NZS 1170, EN 1991, IS 875, NSCP 2015
hourly_wind_pressure_overrideNBCC
snow_load_overrideASCE 7, AS/NZS 1170, EN 1991, NBCC
min_roof_snow_loadASCE 7

Seismic parameters inside site_data โ€” ASCE 7-16 / ASCE 7-22#

{
"site_class": "D",
"site_seismic_data": {
"sd1": 0.96,
"s1": 0.54,
"sds": 0.55,
"tl": 8
}
}

building_data Object#

Defines the structure geometry and load calculation parameters.

Structure types (building_data.structure)#

ValueNotes
"building"Default โ€” enclosed/partially-enclosed/open buildings
"freestanding_wall"ASCE 7 and AS/NZS 1170 only
"truss_tower"ASCE 7 only
"rooftop_equipment"ASCE 7-16/22 only
"solar_panel"ASCE 7 and AS/NZS 1170 only
"signboard"EN 1991 only
"pole"EN 1991 only
"open_frames"ASCE 7-16/22 only
"circular-bin"ASCE 7 and AS/NZS 1170 only

Roof profiles (building_data.roof_profile)#

ValueEnclosure
"gable"enclosed, partially-enclosed, partially-open
"monoslope"enclosed, partially-enclosed, partially-open
"hip"enclosed, partially-enclosed, partially-open
"pitched"open
"troughed"open
"open-monoslope"open

Wind parameters (building_data.wind_parameters)#

KeyDescription
structure_type"mwfrs" (Main Wind Force Resisting System) or "cladding" (Components & Cladding)
enclosure"enclosed", "partially-enclosed", "partially-open", "open"
wind_blockageASCE 7/CFE/AS: "clear" or "obstructed" โ€” AS/NZS 1170: "empty" or "blocked"
gust_effect_factor_overrideASCE 7-10/16 and NSCP 2015: user-defined Gust Effect Factor

Set wind_parameters: false to skip wind load calculation.

Building dimensions (building_data.building_dimensions)#

KeyDescription
lengthBuilding length
widthBuilding width
mean_roof_heightMean roof height
heightWall height (used when mean_roof_height not the primary height input)
roof_angleRoof pitch angle in degrees

Snow parameters (building_data.snow_parameters)#

Set snow_parameters: false to skip snow load calculation. Otherwise provide snow-relevant keys per design code.

Seismic parameters (building_data.seismic_parameters)#

ASCE 7-16#

{
"seismic_parameters": {
"structure_height": 21,
"R": 8.5,
"structure_system": "concrete-mrf",
"Ct": 0.016,
"x": 0.75,
"redundancy_factor": 1.0,
"weights": [
{ "level": "2F", "elevation": "33", "weight": "1200" },
{ "level": "Roof", "elevation": "66", "weight": "800" }
]
}
}

structure_system options: "steel-mrf", "concrete-mrf", "steel-eccentrically-braced", "steel-buckling-restrained", "others".

NZS 1170.5#

{
"seismic_parameters": {
"return_period": 2000,
"site_subsoil_class": "C",
"T1": "0.67",
"Sp": 1,
"mu": 1,
"weights": [
{ "level": "2", "elevation": "7", "weight": "1000" }
]
}
}

NSCP 2015#

{
"seismic_parameters": {
"structure_height": "7",
"R": "8.5",
"Ca": "0.440",
"Cv": "0.640",
"structure_system": "concrete-mrf",
"weights": [
{ "level": "2", "elevation": "3.7", "weight": "500" },
{ "level": "3", "elevation": "7", "weight": "370" }
]
}
}

Freestanding wall dimensions#

{
"freestandingwall_dimensions": {
"ground_to_top": 5,
"wall_width": 10,
"wall_height": 4,
"ratio_of_solid_area_to_gross": 0.8,
"length_of_return_corner": 1.5
}
}

Circular bin / tank dimensions#

{
"circular_bin_dimensions": {
"D": 10,
"H": 15,
"C": 1.5,
"Z": 9,
"configuration": "isolated",
"roof_pitch_angle": 15
}
}

site_analysis Object (Optional)#

Run wind calculations for all 8 directions and find the governing direction. Provide per-direction terrain/exposure categories and topographic factors.

ASCE 7 / NSCP 2015#

{
"site_analysis": {
"terrain_category_all_directions": {
"N": "B", "NE": "B", "E": "B", "SE": "C",
"S": "C", "SW": "C", "W": "C", "NW": "D"
},
"topo_factor_all_direction": {
"N": 1, "NE": 1, "E": 1, "SE": 1,
"S": 1, "SW": 1, "W": 1, "NW": 1
}
}
}

AS/NZS 1170.2#

{
"site_analysis": {
"terrain_category_all_directions": {
"N": "CAT1", "NE": "CAT1", "E": "CAT2.5", "SE": "CAT2.5",
"S": "CAT4", "SW": "CAT2.5", "W": "CAT2.5", "NW": "CAT1"
},
"topo_factor_all_direction": { "N": 1, "NE": 1, "E": 1, "SE": 1, "S": 1, "SW": 1, "W": 1, "NW": 1 },
"lee_multiplier_all_direction": { "N": 1, "NE": 1, "E": 1, "SE": 1, "S": 1, "SW": 1, "W": 1, "NW": 1 },
"hillshape_multiplier_all_direction": { "N": 1, "NE": 1, "E": 1, "SE": 1, "S": 1, "SW": 1, "W": 1, "NW": 1 }
}
}

project_details Object (Optional)#

Used in generated reports.

KeyDescription
nameProject name
idProject ID
companyCompany name
designerDesigner name
clientClient name
notesNotes
units"imperial" or "metric" (ASCE 7 only)
pressure_unitOutput pressure unit (AS/NZS 1170 only)

Response Structure#

{
"site_data": {
"country": "...", "lat": 0.0, "lng": 0.0,
"elevation": 0.0, "formatted_address": "..."
},
"wind_data": {
"wind_speed": 115,
"wind_speed_unit": "mph"
},
"snow_data": {
"snow_load": 25
},
"topography": {
"topo_factor": 1.0,
"terrain_type": "Flat",
"elevation_image_base64": "..."
},
"wind_pressure": {
"pressure_type": "building",
"pressure_unit": "psf",
"elevation_or_location_unit": "ft",
"pressures": [
{
"dirn": "along_L",
"surface": "windward_wall",
"elevation": [15, 30, 45],
"pos_Cpi": [18.5, 20.1, 21.4],
"neg_Cpi": [28.3, 30.7, 32.5]
},
{
"dirn": "along_L",
"surface": "leeward_wall",
"pos_Cpi": -12.5,
"neg_Cpi": -3.1
},
{
"surface": "roof",
"zone": "F",
"pos_Cpi": 10.2,
"neg_Cpi": -38.5
}
]
},
"snow_pressure": null,
"seismic_results": { ... }
}
  • wind_pressure.pressures โ€” array of pressure objects, one per surface/zone combination
  • pos_Cpi โ€” pressure with positive internal pressure coefficient
  • neg_Cpi โ€” pressure with negative internal pressure coefficient
  • Values can be scalars (one elevation) or arrays (multiple elevations)

Other Parameters#

ParameterDescription
api_versionDefault 2.1. Pass 2 for the previous version.
reportSet false to skip report generation and reduce response time.

Full Examples#

ASCE 7-16 Wind + Snow#

{
"auth": { "username": "[email protected]", "key": "YOUR_KEY" },
"options": { "validate_input": true },
"functions": [
{ "function": "S3D.session.start", "arguments": { "keep_open": false } },
{
"function": "standalone.loads.getLoads",
"arguments": {
"project_details": { "name": "Chicago Office", "units": "imperial" },
"site_data": {
"design_code": "asce7-16",
"project_address": "Wacker Avenue, Chicago",
"risk_category": "II",
"topography": {
"wind_direction": "N",
"exposure": "B",
"country": "United States",
"topo_image": false
}
},
"building_data": {
"design_code": "asce7-16",
"structure": "building",
"roof_profile": "gable",
"building_dimensions": {
"length": 60,
"width": 40,
"mean_roof_height": 30,
"roof_angle": 18.4
},
"wind_parameters": {
"structure_type": "mwfrs",
"enclosure": "enclosed"
},
"snow_parameters": {}
},
"api_version": 2
}
}
]
}

AS/NZS 1170.2 Wind (Australia)#

{
"function": "standalone.loads.getLoads",
"arguments": {
"site_data": {
"design_code": "as1170",
"project_address": "Sydney, NSW",
"sls_and_uls": {
"country": "australia",
"design_working_life": "50_years",
"importance_level": "2"
},
"topography": {
"wind_direction": "E",
"terrain_category": "CAT2",
"country": "Australia",
"topo_image": false
}
},
"building_data": {
"design_code": "as1170",
"structure": "building",
"roof_profile": "gable",
"building_dimensions": {
"length": 20, "width": 15,
"mean_roof_height": 6, "roof_angle": 15
},
"wind_parameters": { "structure_type": "building", "enclosure": "enclosed" },
"snow_parameters": false
}
}
}

EN 1991 (UK)#

{
"function": "standalone.loads.getLoads",
"arguments": {
"site_data": {
"design_code": "en1991",
"project_address": "Buckingham Palace, London",
"topography": {
"wind_direction": "30",
"country": "United Kingdom",
"season_month": "Long-term",
"terrain_category": "III",
"distance_inside_town": 20,
"distance_from_shore": 100,
"displacement_height": 0,
"topo_image": false
}
},
"building_data": {
"design_code": "en1991",
"structure": "building",
"roof_profile": "gable",
"building_dimensions": {
"length": 30, "width": 20,
"mean_roof_height": 10, "roof_angle": 20
},
"wind_parameters": { "structure_type": "building", "enclosure": "enclosed" },
"snow_parameters": {}
}
}
}

Key Tips#

  • Address vs coordinates: Use project_address for simplicity. Use lat/lng for precision or when the address is ambiguous.
  • Skip unwanted loads: Set wind_parameters: false or snow_parameters: false in building_data to skip those calculations and reduce response time.
  • Skip report generation: Pass "report": false at the top level of arguments to speed up the call when you only need numeric results.
  • Discover available sections: Run standalone.loads.getCountryDesignCodes first if you're unsure which design_code to use for a given country.
  • Topographic factor: Set topo_image: true in site_data.topography to receive a base64 PNG of the site elevation profile.
  • All-direction analysis: Use site_analysis to run all 8 wind directions in one call and get the governing direction automatically.